华为交换机路由器vlan互访配置
发布网友
发布时间:2022-04-19 13:59
我来回答
共1个回答
热心网友
时间:2023-07-11 16:48
华为s3026交换机配置:
system
Enter
system
view,
return
to
user
view
with
Ctrl+Z.
[Quidway]vlan
2
[Quidway-vlan2]port
e0
/2
[Quidway-vlan2]vlan
3
[Quidway-vlan3]port
e0/7
[Quidway-vlan3]int
vlan
2
[Quidway-Vlan-
interface
2]quit
[Quidway]int
e0/1
[Quidway-Ethernet0/1]port
link-type
trunk
[Quidway-Ethernet0/1]port
trunk
permit
vlan
all
[Quidway-Ethernet0/1]port
trunk
encap
dot1q
[Quidway]save
Save
current
configuration
to
flash
memory
successfully
.
[Quidway]
华为r2621
路由器配置
:
system
Enter
system
view,
return
to
user
view
with
Ctrl+Z.
[Quidway]int
e0
[Quidway-Ethernet0]undo
shut
[Quidway-Ethernet0]int
e0.1
[Quidway-Ethernet0.1]ip
add
10.65.1.2
255.255.255.0
[Quidway-Ethernet0.1]encap
dot1q
2
[Quidway-Ethernet0.1]int
e0.2
[Quidway-Ethernet0.2]ip
add
10.66.1.2
255.255.255.0
[Quidway-Ethernet0.2]encap
dot1q
3
[Quidway-Ethernet0.2]undo
shut
[Quidway-Ethernet0.2]quit
[Quidway]save
Save
current
configuration
to
flash
memory
successfully.
[Quidway]ip
routing
[Quidway]save
Save
current
configuration
to
flash
memory
successfully.
[Quidway]
其中:10.65.1.2和10.66.1.2为pc1和pc2的网关地址