
汇聚交换机配置.doc
7页sys#sysname BeiDaFuShuZhongXue_HuiJu_S3328将汇聚交换机命名命令为:sysname# vlan 150新建一个VLAN 150 即quit,退出VLAN下模式 vlan 659 q# interface Vlanif 659进入LAN659下(Vlanif表该VLAN为管理VLAN) description TO_Guangli对VLAN进行注释 ip address 10.254.64.114 255.255.255.240配置VLAN的IP地址,由传输圈图提供 q#interface Ethernet0/0/1进入交换机快速交换端口1配置该端口 port link-type trunk配置该端口为中继模式,也就是配置该端口为中继端口 undo port trunk allow-pass vlan 1不允许VLAN1的数据通过该端口备注:华为交换机默认VLAN1为管理VLAN) port trunk allow-pass vlan 150 659允许VLAN150,659通过该端口转发数据 ntdp enable ndp enable bpdu enable华为的一些二次封装协议,即允许该端口将数据再次封装。
interface Ethernet0/0/2 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable #interface Ethernet0/0/3 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/4 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/5 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/6 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/7 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/8 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/9 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/10 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/11 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/12 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/13 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/14 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/15 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/16 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/17 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/18 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/19 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/20 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/21 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/22 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable# interface Ethernet0/0/23 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface Ethernet0/0/24 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 150 659 ntdp enable ndp enable bpdu enable#interface GigabitEthernet0/0/1进入快速千兆端口1下配置 description To_ChuanShu定义该端口 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 659#interface GigabitEthernet0/0/2 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 659#interface GigabitEthernet0/0/3 port link-type trunk undo port trunk allow-pass vlan 1 por。