下面组网,请帮分析如何通过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