思科真机配置实例

在这里插入图片描述

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显示路由表

image-20210625113940756

AR4显示路由表

image-20210625114008188

AR4nat配置

image-20210625114120227

FR ospf配置

image-20210625114155080

分部交换机配置(右边交换机)划分三个vlan

image-20210625114640400

左边PC0 ping 右边路由器子接口 10.208.0.2 ping 10.208.10.1发现能通,证明整个拓扑网络是通的

image-20210625115549941

10.208.0.2 ping 10.208.20.1 左边主机ping右边路由器子接口

image-20210625115641291
左边主机10.208.0.2 ping 右边路由器出口ip 10.208.2.2
image-20210625115710004

  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值