(一地址配置)
r1(config)#int f0/0
r1(config-if)#ip add 61.153.177.1 255.255.255.0
r1(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
r1(config-if)#int f0/1
r1(config-if)#ip add 192.168.1.1 255.255.255.0
r1(config-if)#no shut
r1(config)#int s1/0
r1(config-if)#ip add 112.55.33.1 255.255.255.0
r1(config-if)#no shut
电信r1(config)#ip route 0.0.0.0 0.0.0.0 61.153.177.3
网通r1(config)#ip route 113.55.33.0 255.255.255.0 112.55.33.11
r1(config)#ip route 114.55.33.0 255.255.255.0 112.55.33.11
二(NAT配置)
r1(config)#int f0/0
r1(config-if)#ip nat outside
r1(config-if)#exi
r1(config)#int s1/0
r1(config-if)#ip nat outside
r1(config-if)#end
NAT地址池
r1(config)#ip nat pool wt 112.55.33.5 112.55.33.5 netmask 255.255.255.0
r1(config)#ip nat pool dx 61.153.177.2 61.153.177.2 netmask 255.255.255.0
配置两个route map
Route-map isp2 permit 10
Match ip address 100
Match int s1/0
Route-map isp1 permit 10
Match ip address 100
Match int f0/0
本文出自 “施志华IT达人show” 博
新闻热点
疑难解答