路由11参考指令

DMS1
en
conf t
ip routing
int f0/24
no sw
ip add 192.168.0.1 255.255.255.252
no shu
end
conf t
vlan 10
vlan 11
int vlan 10
ip add 192.168.10.252 255.255.255.0
no shu
int vlan 11
ip add 192.168.11.252 255.255.255.0
no shu
int range f0/1-3
sw tr enca dot1q
sw mo tr
end
conf t
route ospf 1
net 192.168.0.0 255.255.255.252 area 0
net 192.168.10.0 255.255.255.0 area 0
net 192.168.11.0 255.255.255.0 area 0


DMS2
en
conf t
ip routing
int f0/24
no sw
ip add 192.168.0.21 255.255.255.252
no shu
end
conf t
vlan 10
vlan 11
int vlan 10
ip add 192.168.10.253 255.255.255.0
no shu
int vlan 11
ip add 192.168.11.253 255.255.255.0
no shu
int range f0/1-3
sw tr enca dot1q
sw mo tr
end
conf t
route ospf 1
net 192.168.0.0 255.255.255.252 area 0
net 192.168.10.0 255.255.255.0 area 0
net 192.168.11.0 255.255.255.0 area 0


CoreSW
en
conf t
ip routing
int f0/1
no sw
ip add 192.168.0.2 255.255.255.252
no shu
int f0/2
no sw
ip add 192.168.0.22 255.255.255.252
no shu
int f0/3
no sw
ip add 192.168.0.6 255.255.255.252
no shu
int f0/4
no sw
ip add 192.168.0.10 255.255.255.252
no shu
int g0/1
no sw
ip add 192.168.0.18 255.255.255.252
no shu
end
conf t
route ospf 1
net 192.168.0.0 255.255.255.252 area 0
net 192.168.0.20 255.255.255.252 area 0
net 192.168.0.4 255.255.255.252 area 0
net 192.168.0.8 255.255.255.252 area 0
net 192.168.0.16 255.255.255.252 area 0


MS1
en
conf t
ip routing
int f0/24
no sw
ip add 192.168.0.5 255.255.255.252
no shu
int f0/23
no sw
ip add 192.168.0.13 255.255.255.252
no shu
end
conf t
vlan 20
vlan 21
int vlan 20
ip add 192.168.20.251 255.255.255.0
no shu
int vlan 21
ip add 192.168.21.251 255.255.255.0
no shu
end
conf t
route ospf 1
net 192.168.0.4 255.255.255.252 area 0
net 192.168.0.12 255.255.255.252 area 0
net 192.168.20.251 255.255.255.0 area 0
net 192.168.21.251 255.255.255.0 area 0


MS2
en
conf t
ip routing
int f0/24
no sw
ip add 192.168.0.9 255.255.255.252
no shu
int f0/23
no sw
ip add 192.168.0.14 255.255.255.252
no shu
end
conf t
vlan 30
int vlan 30
ip add 192.168.30.251 255.255.255.0
no shu
end
conf t
route ospf 1
net 192.168.0.8 255.255.255.252 area 0
net 192.168.0.12 255.255.255.252 area 0
net 192.168.30.10 255.255.255.0 area 0

FR
en
conf t
int g0/0
ip add 192.168.0.17 255.255.255.252
no shu
end
conf t
route ospf 1
net 192.168.0.16 255.255.255.252 area 0


DS
en
conf t
vlan 10
vlan 11
int f0/3
sw mo ac
sw ac vlan 10
int f0/4
sw mo ac
sw ac vlan 11
int f0/1
sw mo tr
int f0/2
sw mo tr


S0
en
conf t
vlan 20
vlan 21
int f0/2
sw mo ac
sw ac vlan 20
int f0/3
sw mo ac
sw ac vlan 21
int f0/1
sw mo tr


S1
en
conf t
vlan 30
int f0/2
sw mo ac 
sw ac vlan 30
int f0/1
sw mo tr


//**********************************
     ip            gateway
pc1  192.168.20.1  192.168.20.251
pc2  192.168.21.1  192.168.21.251
pc3  192.168.30.1  192.168.30.251
tftp 192.168.10.1  192.168.10.251
dhcp 192.168.11.1  192.168.11.251

//**********************************
网络冗余协议hsrp+生成树协议+以太链路协议
DMS1
en
conf t
int range f0/2-3
channel-protocol pagp
channel-group 1 mode desirable
end
conf t
int vlan 10
standby 1 priority  110
standby 1 preempt
standby 1 ip 192.168.10.251
int vlan 11
standby 2 preempt
standby 2 ip 192.168.11.251
end
conf t
spanning-tree vlan 10 root primary
spanning-tree vlan 11 root secondary

DMS2
en
conf t
int range f0/2-3
channel-protocol pagp
channel-group 1 mode desirable
end
conf t
int vlan 10
standby 1 preempt
standby 1 ip 192.168.10.251
int vlan 11
standby 2 priority  110
standby 2 preempt
standby 2 ip 192.168.11.251
end
conf t
spanning-tree vlan 11 root primary
spanning-tree vlan 10 root secondary

DS
en
conf t
int range f0/3-4
spanning-tree portfast 

//**************************
DHCP图形化配置
MS2
en
conf t
int vlan 30
ip help 192.168.11.1
//**************************
边界路由配置
FR
en
conf t
ip nat pool NATPOOL 202.194.64.0 202.194.64.200 netmask 255.255.255.0
access-list 1 deny 192.168.30.0 0.0.0.255
access-list 1 deny 192.168.10.0 0.0.0.255
access-list 1 permit any
ip nat inside source list 1 pool NATPOOL 
ip nat inside source static 192.168.11.1 202.194.64.251
int g0/0
ip nat inside
int s0/0/0
ip nat outside
end
conf t
ip route 0.0.0.0 0.0.0.0 s0/0/0
router ospf 1
default-information originate
end
conf t
int s0/0/0
ip add 192.168.1.1 255.255.255.0
no shu

备份
Router#copy flash: tftp: 
Source filename []? c1900-universalk9-mz.SPA.151-4.M4.bin
Address or name of remote host []? 192.168.10.1
Destination filename [c1900-universalk9-mz.SPA.151-4.M4.bin]? 

//****************************
en
copy running-config tftp: 
192.168.10.1


 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值