论坛首页 综合技术论坛

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

浏览 3680 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (1)
作者 正文
   发表时间:2009-05-12  
nat
[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

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

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

pap
[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

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

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

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

ospf
[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

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

端口聚合
[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

debug
<r1>debugging ppp pap all
<r1>terminal debugging

<r1>debugging osfp event
<r1>terminal debugging
<r1>reset ospf all
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics