AR3配置
interface GigabitEthernet0/0/0 ip address 23.1.1.3 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 192.168.1.254 255.255.255.0 ospf 1 router-id 3.3.3.3 area 0.0.0.0 network 23.1.1.0 0.0.0.255 network 192.168.1.0 0.0.0.255 # ip route-static 0.0.0.0 0.0.0.0 23.1.1.2
AR2配置
interface GigabitEthernet0/0/0 ip address 23.1.1.2 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 12.1.1.2 255.255.255.0 ospf 1 router-id 2.2.2.2 area 0.0.0.0 network 12.1.1.0 0.0.0.255 network 23.1.1.0 0.0.0.255 # ip route-static 0.0.0.0 0.0.0.0 12.1.1.1
AR1配置
acl number 2000 rule 5 permit source 192.168.1.0 0.0.0.255 interface GigabitEthernet0/0/0 ip address 14.1.1.1 255.255.255.0 nat outbound 2000 #NAT转换 # interface GigabitEthernet0/0/1 ip address 12.1.1.1 255.255.255.0 ospf 1 router-id 1.1.1.1 area 0.0.0.0 network 12.1.1.0 0.0.0.255 # ip route-static 0.0.0.0 0.0.0.0 14.1.1.4
ISP配置
interface GigabitEthernet0/0/0 ip address 14.1.1.4 255.255.255.0 interface LoopBack0 ip address 4.4.4.4 255.255.255.255
测试