AR4:
Building configuration...
Current configuration : 1464 bytes
!
! Last configuration change at 02:01:28 UTC Fri Jun 25 2021
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
dot11 syslog
ip source-route
!
!
ip cef
!
!
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
!
!
!
!
license udi pid CISCO2811C/K9 sn FGL1717111R
!
!
!
!
!
!
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 10.208.0.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.208.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.208.2.1 255.255.255.0
ip nat outside
ip virtual-reassembly
no fair-queue
clock rate 64000
!
interface Serial0/0/1
no ip address
shutdown
clock rate 2000000
!
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
network 10.208.0.0 0.0.0.255 area 0
network 10.208.1.0 0.0.0.255 area 0
network 10.208.2.0 0.0.0.255 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip nat inside source list 1 interface Serial0/0/0 overload
!
access-list 1 permit 10.208.0.0 0.0.0.255
access-list 1 permit 10.208.1.0 0.0.0.255
!
!
!
control-plane
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
scheduler allocate 20000 1000
end
FR:
!
hostname FR
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
ip cef
!
!
!
!
ip dhcp pool vlan10
network 10.208.10.0 255.255.255.0
default-router 10.208.10.1
lease 30
!
ip dhcp pool vlan20
network 10.208.20.0 255.255.255.0
default-router 10.208.20.1
lease 30
!
!
!
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
license udi pid CISCO2911/K9 sn FGL171910T4
!
!
!
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/2.10
encapsulation dot1Q 10
ip address 10.208.10.1 255.255.255.0
!
interface GigabitEthernet0/2.20
encapsulation dot1Q 20
ip address 10.208.20.1 255.255.255.0
!
interface GigabitEthernet0/2.100
encapsulation dot1Q 100
ip address 10.208.100.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface Serial0/0/0
no ip address
shutdown
!
interface Serial0/0/1
no ip address
shutdown
!
interface Serial0/1/0
no ip address
shutdown
!
interface Serial0/1/1
no ip address
shutdown
!
interface Serial0/2/0
no ip address
shutdown
!
interface Serial0/2/1
no ip address
shutdown
!
interface Serial0/3/0
ip address 10.208.2.2 255.255.255.0
ip nat outside
ip virtual-reassembly in
!
interface Serial0/3/1
no ip address
!
router ospf 1
router-id 2.2.2.2
network 10.208.2.0 0.0.0.255 area 0
network 10.208.10.0 0.0.0.255 area 0
network 10.208.20.0 0.0.0.255 area 0
network 10.208.100.0 0.0.0.255 area 0
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source static 10.208.100.2 10.208.2.3
!
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
!
end
LSW1:
interface FastEthernet0/7
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/8
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
FR显示路由表
AR4显示路由表
AR4nat配置
FR ospf配置
分部交换机配置(右边交换机)划分三个vlan
左边PC0 ping 右边路由器子接口 10.208.0.2 ping 10.208.10.1发现能通,证明整个拓扑网络是通的
10.208.0.2 ping 10.208.20.1 左边主机ping右边路由器子接口
左边主机10.208.0.2 ping 右边路由器出口ip 10.208.2.2