标签:inter image UI oss lan cto 分享图片 技术 type
配置命令
交换机LSW1:
<Huawei>system-view
[Huawei]vlan batch 10 20 30
[Huawei]interface Ethernet 0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 10
[Huawei-Ethernet0/0/1]quit
[Huawei]interface Ethernet 0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 20
[Huawei-Ethernet0/0/2]quit
[Huawei]interface Ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]port default vlan 30
[Huawei-Ethernet0/0/3]quit
[Huawei]interface Ethernet 0/0/4
[Huawei-Ethernet0/0/4]port link-type trunk
[Huawei-Ethernet0/0/4]port trunk allow-pass vlan all
交换机LSW2:
<Huawei>system-view
[Huawei]vlan batch 40 50
[Huawei]interface Ethernet 0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 40
[Huawei-Ethernet0/0/1]quit
[Huawei]interface Ethernet 0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 50
[Huawei-Ethernet0/0/2]quit
[Huawei]interface Ethernet 0/0/3
[Huawei-Ethernet0/0/3]port link-type trunk
[Huawei-Ethernet0/0/3]port trunk allow-pass vlan all
交换机LSW3:
<Huawei>system-view
[Huawei]vlan batch 10 20 30 40 50 60
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]quit
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/2]quit
[Huawei]interface GigabitEthernet 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access
[Huawei-GigabitEthernet0/0/3]port default vlan 60
[Huawei-GigabitEthernet0/0/3]quit
[Huawei]interface vlan 10
[Huawei-Vlanif10]ip address 192.168.10.254 24
[Huawei-Vlanif10]quit
[Huawei]interface vlan 20
[Huawei-Vlanif20]ip address 192.168.20.254 24
[Huawei-Vlanif20]quit
[Huawei]interface vlan 30
[Huawei-Vlanif30]ip address 192.168.30.254 24
[Huawei-Vlanif30]quit
[Huawei]interface vlan 40
[Huawei-Vlanif40]ip address 192.168.40.254 24
[Huawei-Vlanif40]quit
[Huawei]interface vlan 50
[Huawei-Vlanif50]ip address 192.168.50.254 24
[Huawei-Vlanif50]quit
[Huawei]interface vlan 60
[Huawei-Vlanif60]ip address 192.168.60.1 24
[Huawei-Vlanif60]quit
[Huawei]ip route-static 192.168.70.0 24 192.168.60.254
路由器R1:
<Huawei>system-view
[Huawei]interface Ethernet 0/0/0
[Huawei-Ethernet0/0/0]ip address 192.168.60.254 24
[Huawei-Ethernet0/0/0]quit
[Huawei]interface Ethernet 0/0/1
[Huawei-Ethernet0/0/1]ip address 192.168.70.254 24
[Huawei-Ethernet0/0/1]quit
[Huawei]ip route-static 0.0.0.0 0.0.0.0 192.168.60.1
PC机ip地址随意配置
标签:inter image UI oss lan cto 分享图片 技术 type
原文地址:http://blog.51cto.com/13562306/2063377