随便配的玩玩,PC1通PC2,涉及到NAT,路由
版本:1.3.00.100
AR1:
AR1:
#
interface GigabitEthernet0/0/0
ip address 192.168.3.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.1.2 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
#
AR2:
#
acl number 2001
rule 5 permit source 192.168.0.0 0.0.255.255
#
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.10.1 255.255.255.0
nat outbound 2001
#
ip route-static 0.0.0.0 0.0.0.0 192.168.10.2
ip route-static 192.168.3.0 255.255.255.0 192.168.1.2
#
AR3:
#
acl number 2001
rule 5 permit source 192.168.0.0 0.0.255.255
#
interface GigabitEthernet0/0/0
ip address 192.168.20.1 255.255.255.0
nat outbound 2001
#
interface GigabitEthernet0/0/1
ip address 192.168.2.1 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.20.2
ip route-static 192.168.4.0 255.255.255.0 192.168.2.2
#
AR4:
#
interface GigabitEthernet0/0/0
ip address 192.168.2.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.4.1 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.2.1
#
AR6:
#
interface GigabitEthernet0/0/0
ip address 192.168.10.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.20.2 255.255.255.0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.20.1
ip route-static 0.0.0.0 0.0.0.0 192.168.10.1
#