華為vlan劃分,單臂路由以及靜態路由
華為vlan劃分,單臂路由以及靜態路由使所有成員都能上網
華為拓撲圖:
ip位址規劃如圖!
給三颱電腦配ip位址
vlan 劃分:
sy 進入檢視模式
[huawei]un in en 關閉訊息中心
[huawei]sysname sw1 改交換機名字
[sw1]inter vlan 1 進入交換機
[sw1-vlanif1]ip address 192.168.0.10 24 配ip位址
[sw1-vlanif1]un shut 開啟
[sw1]vlan 2 設定vlan
[sw1-vlan2]vlan 3
[sw1-vlan3]vlan 4
[sw1]inter e0/0/2 進介面 劃分vlan
[sw1-ethernet0/0/2]port link-type access
[sw1-ethernet0/0/2]port default vlan 3
[sw1-ethernet0/0/2]inter e0/0/1
[sw1-ethernet0/0/1]port link-type access
[sw1-ethernet0/0/1]port default vlan 2
[sw1-ethernet0/0/1]inter e0/0/3
[sw1-ethernet0/0/3]port link-type access
[sw1-ethernet0/0/3]port default vlan 4
[sw1-ethernet0/0/3]inter g0/0/1
[sw1-gigabitethernet0/0/1]port link-type trunk 設定成中埠
[sw1-gigabitethernet0/0/1]port trunk allow-pass vlan all
設定成所有成員通過
單臂路由:
sy 進入檢視模式
[huawei]un in en 關閉訊息中心
[huawei]sysname r1 改交換機名字
[r1]inter g0/0/0
[r1-gigabitethernet0/0/0]un shut 開啟
[r1-gigabitethernet0/0/0]inter g0/0/0.1 進入子介面
[r1-gigabitethernet0/0/0.1]dot1q termination vid 1
[r1-gigabitethernet0/0/0.1]ip address 192.168.0.1 24
[r1-gigabitethernet0/0/0.1]un shut
[r1-gigabitethernet0/0/0.1]inter g0/0/0.2
[r1-gigabitethernet0/0/0.2]dot1q termination vid 2
[r1-gigabitethernet0/0/0.2]ip address 192.168.1.1 24
[r1-gigabitethernet0/0/0.2]un shut
[r1-gigabitethernet0/0/0.2]inter g0/0/0.3
[r1-gigabitethernet0/0/0.3]dot1q termination vid 3
[r1-gigabitethernet0/0/0.3]ip address 192.168.2.10 24
[r1-gigabitethernet0/0/0.3]un shut
[r1-gigabitethernet0/0/0.3]inter g0/0/0.4
[r1-gigabitethernet0/0/0.4]dot1q termination vid 4
[r1-gigabitethernet0/0/0.4]ip address 192.168.3.10 24
[r1-gigabitethernet0/0/0.4]un shut
[r1-gigabitethernet0/0/0.4]inter g0/0/1
[r1-gigabitethernet0/0/1]ip address 202.106.1.1 30 配置ip位址
[r1-gigabitethernet0/0/1]un shut
sys[huawei]un in en
[huawei]sysname r2
[r2]inter g0/0/0
[r2-gigabitethernet0/0/0]ip address 202.106.1.2 30
[r2-gigabitethernet0/0/0]un shut
[r2-gigabitethernet0/0/0]inter g0/0/1
[r2-gigabitethernet0/0/1]ip address 202.106.1.5 30
[r2-gigabitethernet0/0/1]un shut
sy[huawei]un in en
[huawei]sysname r3
[r3]inter g0/0/0
[r3-gigabitethernet0/0/0]ip address 202.106.1.6 30
[r3-gigabitethernet0/0/0]un shut
加靜態路由:
[r2]ip route-static 192.168.0.0 255.255.252.0 202.106.1.1 然後測試結果
[r3]ip route-static 202.106.1.0 30 202.106.1.5
[r3]ip route-static 192.168.0.0 22 202.106.1.5
[r1]ip route-static 202.106.1.4 30 202.106.1.2
測試結果!!!!!!都通了!
華為 單臂路由實現vlan通訊
二層交換機配置 s1 vlan batch 2 3 info this operation may take a few seconds.please wait for a moment.done.s1 int e0 0 2 s1 ethernet0 0 2 port link type acc s...
Cisco PT簡單 vlan劃分和單臂路由操作
所用到的指令 vlan do show vlan 可以在其他模式下檢視配置資訊 switch trunk encap dot1q 有些路由器需要 switchport mode trunk 介面模式改為主幹 switchport mode access 將介面的模式改為接入模式 encapsulat...
VLAN間單臂路由
實驗拓撲 1.配置pc機ip位址和閘道器 略 2.在交換機上建立vlan,並將介面加入相應的vlan中 enconf t vlan 10 vlan 20 exit int f0 1 switchport mode access swithchport access vlan 10 int f0 2 ...