网络实验(华为路由器+三层交换机S3526)配置命令总结

[b]nat[/b]
[r1]acl number 2001
[r1-acl-2001]rule permit source 192.168.2.0 0.0.0.255
[r1-acl-2001]rule deny source any
[r1]nat address-group 1 192.168.5.5 192.168.5.9
[r1]interface e0/1
[r1-Ethernet1]nat outband 2001 address-group 1
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.5.1

[b]PPP[/b]
[r1]inter serial 0/0
[r1-Serial0]link-protocal ppp
[r1-Serial0]shutdown
[r1-Serial0]undo shutdown

[b]trunk[/b]
[r1]inter e0/13
[r1-Ethernet13]port link-type trunk
[r1-Ethernet13]port trunk permit vlan 2 3

[b]pap[/b]
[r1]local-user RTB
[r1-User-RTB]service-type ppp
[r1-User-RTB]password simple aaa
[r1]inter serial 0/0
[r1-Serial0]ppp authentication pap
[r1-Serial0]shutdown
[r1-Serial0]undo shutdown
[r2]inter serial 0/0
[r2-Serial0]ppp pap local-user RTB password simple aaa
[r2-Serial0]shutdown
[r2-Serial0]undo shutdown

[b]RIP[/b]
[r1]rip
[r1-rip]network 192.168.1.0

[b]loop[/b]
[s1]inter loopback 1
[s1-LoopBack1]ip add 192.168.2.1

[b]rip2认证[/b]
[r1-Ethernet0]rip version 2
[r1-Ethernet0]rip authentication-mode md5 key-string buaa

[b]ospf[/b]
[r1]router id 1.1.1.1
[r1]ospf
[r1-ospf]area 0
[r1-ospf-area-0.0.0.0]network 192.168.5.0 0.0.0.255

[r1]inter e0/0
[r1-Ethernet0]ospf cost 100

[b]在交换机上启动生成树协议[/b]
[s1] stp enable
[s2] stp enable

[b]端口聚合[/b]
[s1] interface e 0/1
[s1-ethernet0/1] duplex full
[s1-Ethernet0/1] speed 100
[s1-Ethernet0/2] duplex full
[s1-Ethernet0/2] speed 100
[s1] link-aggretation Ethernet 0/1 to Ethernet 0/2 both

[b]debug[/b]
debugging ppp pap all
terminal debugging

debugging osfp event
terminal debugging
reset ospf all

你可能感兴趣的:(Networks)