持之以恒
分类: 系统运维
2009-04-11 23:30:25
第1章 基本常用命令
1.1 通用命令
[Quidway]?
[Quidway]display ?
[Quidway]di?
[Quidway]display a?
[Quidway]sysname S1
[S1]…
[Quidway]sysname R1
[R1]…
[Quidway]dis curr
reset saved-configuration 然后reboot
[Quidway]int e 0/1
这里要注意路由器或者是交换机有没有这个端口,可以通过dis curr来进行查看
[Quidway]dis interface e0/1
[Quidway]sh
[Quidway]un sh
1.2 交换机命令
1.2.1配置VLAN
[S1]VLAN 2
[S1-VLAN2]port e 0/1 to e 0/5
[S1-VLAN2]qu
[S1]inter vlan 2
[S1-vlan-interface2]ip address 192.168.2.1 255.255.255.0
[S1]interface e0/13
[S1-Ethernet0/13]port link-type trunk
[S1-Ethernet0/13]port trunk permit vlan 2 3
1.3 路由器命令
[R1]inter e 0/0
[R1-Ethernet0/0]ip address 192.168.1.1 255.255.255.0
[R1]dis ip r
[RouterA]ip route-static 129.1.0.0 255.255.0.0 129.0.0.2
目的网段:不是与路由器直连的网段 下一跳地址是与路由器直连的网段
[RouterB]ip route-static
[R1]acl number 2001
[R1-acl-2001]rule permit source
192.168.2.0
这里是反掩码
[R1]nat address-group 1 192.168.5.5 192.168.5.9
[R1]interface ethernet0/1
[R1-Ethernet0/1]nat outbound 2001 address-group 1
[R1]ip route-static 0.0.0.0 0.0.0.0 192.168.5.1
第3章 OSPF实验
[R1]router id 1.1.1.1
[R1]ospf
[R1]ospf
[R1-ospf]area 0
[R1-ospf-area-
注:这里是反掩码
[R1]ospf
[R1-ospf]import-route direct
[R1]ospf
[R1-ospf]import-route static
[R1]display lsdb