单臂路由简单基础配置
作者:互联网
PC1:
IP地址:192.168.1.1
子网掩码:255.255.255.0
网关:192.168.1.254
PC2:
IP地址:192.168.1.2
子网掩码:255.255.255.0
网关:192.168.1.254
PC3:
IP地址:192.168.2.1
子网掩码:255.255.255.0
网关:192.168.2.254
PC4:
IP地址:192.168.2.2
子网掩码:255.255.255.0
网关:192.168.2.254
SW1:
<Huawei>system-view
[Huawei]undo info-center enable
[Huawei]sysname SW1
[SW1]vlan batch 10 20
[SW1]int e0/0/1
[SW1-Ethernet0/0/1]port link-type access
[SW1-Ethernet0/0/1]port default vlan 10
[SW1-Ethernet0/0/1]int e0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 10
[SW1-Ethernet0/0/2]int e0/0/3
[SW1-Ethernet0/0/3]port link-type access
[SW1-Ethernet0/0/3]port default vlan 20
[SW1-Ethernet0/0/3]int e0/0/4
[SW1-Ethernet0/0/4]port link-type access
[SW1-Ethernet0/0/4]port default vlan 20
[SW1-Ethernet0/0/4]int e0/0/5
[SW1-Ethernet0/0/5]port link-type trunk
[SW1-Ethernet0/0/5]port trunk allow-pass vlan all
[SW1-Ethernet0/0/5]quit
[SW1]quit
<SW1>save
R1:
<Huawei>system-view
[Huawei]undo info-center enable
[Huawei]sysname R1
[R1]int e0/0/0.1
[R1-Ethernet0/0/0.1]dot1q termination vid 10
[R1-Ethernet0/0/0.1]ip add 192.168.1.254 24
[R1-Ethernet0/0/0.1]arp broadcast enable
[R1-Ethernet0/0/0.1]int e0/0/0.2
[R1-Ethernet0/0/0.2]dot1q termination vid 20
[R1-Ethernet0/0/0.2]ip add 192.168.2.254 24
[R1-Ethernet0/0/0.2]arp broadcast enable
[R1-Ethernet0/0/0.2]quit
[R1]quit
<R1>save
标签:R1,int,Ethernet0,配置,192.168,SW1,port,路由,单臂 来源: https://blog.csdn.net/zhao__b/article/details/122185029