请帮忙配置华为低端路由器做nat功能,紧急求助

romancool 2008-05-18 06:07:00



下面组网,请帮分析如何通过pc可以访问host及internet


需要在上面路由器作nat及acl

因为server上无法作138.x.x.x的路由数据,所以回程是个问题。多谢各位大侠,请给出配置。


route 为R2621
S3026上无任何配置
如果在S3026上配置10.5.252.x,gateway=10.5.252.1时可以访问internet
现在不想配置server上的路由数据,想通过在routea上做nat实现pc可以访问internat。

请帮忙给出配置命令。



路由器配置

138.100.5.1

controller e1 0
channel-set 0 timeslot-list 1-31
!
controller e1 1
channel-set 0 timeslot-list 1-31
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 138.100.5.1 255.255.252.0
!
interface Ethernet1
ip address 10.5.252.65 255.255.255.192
------ More (Press CTRL_C to break) ------[42D [42D
!
interface Serial0
link-protocol ppp
!
interface Serial1
link-protocol ppp
!
interface Serial2:0
link-protocol hdlc
ip address 192.168.0.9 255.255.255.252
!
interface Serial3:0
link-protocol hdlc
ip address 192.168.0.1 255.255.255.252
!
quit
ip route-static 0.0.0.0 0.0.0.0 192.168.0.2 preference 60
ip route-static 139.100.0.0 255.255.0.0 192.168.0.2 preference 60
!
return




139.100.5.1

!
controller e1 0
channel-set 0 timeslot-list 1-31
!
controller e1 1
channel-set 0 timeslot-list 1-31
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 139.100.5.1 255.255.252.0
------ More (Press CTRL_C to break) ------[42D [42D
!
interface Ethernet1
ip address 10.5.252.49 255.255.255.192
!
interface Serial0
link-protocol ppp
!
interface Serial1
link-protocol ppp
!
interface Serial2:0
link-protocol hdlc
ip address 192.168.0.10 255.255.255.252
!
interface Serial3:0
link-protocol hdlc
ip address 192.168.0.2 255.255.255.252
!
quit
ip route-static 0.0.0.0 0.0.0.0 10.5.252.1 preference 60
ip route-static 138.100.0.0 255.255.0.0 192.168.0.1 preference 60
!
return
...全文
168 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
CathySun118 2008-11-03
  • 打赏
  • 举报
回复
华为的东西网上有说明书下的啊

4,358

社区成员

发帖
与我相关
我的任务
社区描述
通信技术相关讨论
社区管理员
  • 网络通信
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧