① 1個子介面 可以綁定 多個VLAN嗎謝謝
子介面是虛擬介面,每個虛擬介面可以劃分一個vlan,而路由器三層介面可以劃分多個子介面。所以你想要通過一個路由器介面作為匯聚口,就在路由器介面下劃多個子介面,每個子介面綁定一個vlan。
② 一個路由器兩個vlan如何設置可以相互通信如圖!
不同vlan之間通過二層交換機是無法通信的,因為vlan之間處於不同網段,交換機只將報文轉發至相同的網段,而路由器或是三層交換機可以在不同網路之間轉發數據包,所以vlan2的主機可以通過路由器將數據包轉發個vlan3的主機實現相互通信
③ 路由一條線連接2個VLAN
路由器與交換機之間採用trunk鏈路,路由器採用子介面封裝,其ip地址就是pc的網關。這樣就可以通過路由器鏈接外網
④ 同一路由器下鏈接的兩個不同VLAN怎麼實現通信
你好,兩個不同的VLAN 設置一下 試試如下
必須要用到三層設備才能實現vlan間的互訪,比如路由器或三層交換機。路由器就做vlan 間路由。三層交換機中只需要在不同的vlan 上配置了網關,例如:有三個vlan : vlan 10 vlan 20 vlan 30則:
interface vlan 10
ip add 192.168.10.1 255.255.255.0
no shut
interface vlan 20
ip add 192.168.20.1 255.255.255.0
no shut
interface vlan 30
ip add 192.168.30.1 255.255.255.0
no shut
然後把一個介面配置為trunk模式:例如:
interface fa0/1
switchport mode trunk
將二層交換機的一個trunk口與這個trunk埠連接就好了。
這樣 配置完了之後就可以實現vlan 間的互訪了。
希望幫到你
望採納
謝謝
⑤ 怎麼把一個埠加到兩個VLAN里 小小知識站
1、進入交換機。
2、 輸入命令config terminal 進入全局模式。
3、interface range g0/0/1-5 進入多個埠,g0/0/1到0/0/5,此為舉例根據實際情況設置
4、switchport access vlan 100 將以上幾個埠配置為access模式,並屬於vlan 100
這樣就能在vlan 中一次添加多個埠了。
LAN(Virtual Local Area Network)的中文名為"虛擬區域網"。
虛擬區域網(VLAN)是一組邏輯上的設備和用戶,這些設備和用戶並不受物理位置的限制,可以根據功能、部門及應用等因素將它們組織起來,相互之間的通信就好像它們在同一個網段中一樣,由此得名虛擬區域網。VLAN是一種比較新的技術,工作在OSI參考模型的第2層和第3層,一個VLAN就是一個廣播域,VLAN之間的通信是通過第3層的路由器來完成的。與傳統的區域網技術相比較,VLAN技術更加靈活,它具有以下優點: 網路設備的移動、添加和修改的管理開銷減少;可以控制廣播活動;可提高網路的安全性。
在計算機網路中,一個二層網路可以被劃分為多個不同的廣播域,一個廣播域對應了一個特定的用戶組,默認情況下這些不同的廣播域是相互隔離的。不同的廣播域之間想要通信,需要通過一個或多個路由器。這樣的一個廣播域就稱為VLAN。
⑥ 如何一個埠設置多個VLAN
1.一個埠可以配置在多個VLAN中,命令如下:setvlan10<name>setvlan103/1setvlan20<name>setvlan203/1即可
2.對於不同的用戶有不同的許可權,可以通過網路的域控制器為不同的用戶設置許可權即可。
具體如下:在基於域控制器的計算機上,打開「活動目錄的用戶和計算機」--「用戶」--找到你想修改的用戶,右鍵單擊打開「屬性」,修改相關參數就行了。
⑦ 一個路由器連兩個VLAN
我也是剛接觸這個,每個路由器口上配置一個網關地址不就是嗎
互通應該是要做路由吧
我是這么做的發上來大家探討一下
路由器配置:
Router#showrunning-config
Buildingconfiguration...
Currentconfiguration:1199bytes
!
version15.1
noservicepassword-encryption
!
hostnameRouter
!
!
!
!
!
ipdhcppool10
network10.10.10.0255.255.255.0
default-router10.10.10.1
dns-server10.80.10.11
ipdhcppool20
network10.10.20.0255.255.255.0
default-router10.10.20.1
dns-server10.80.10.11
!
!
!
!
!
!
!
licenseudipidCISCO2901/K9snFTX1524S8WG
!
!
!
!
!
spanning-treemodepvst
!
!
!
!
interfaceGigabitEthernet0/0
noipaddress
ipnatinside
plexauto
speedauto
!
interfaceGigabitEthernet0/0.1
encapsulationdot1Q10
ipaddress10.10.10.1255.255.255.0
!
interfaceGigabitEthernet0/1
noipaddress
plexauto
speedauto
!
interfaceGigabitEthernet0/1.1
encapsulationdot1Q20
ipaddress10.10.20.1255.255.255.0
!
interfaceFastEthernet0/1/0
switchportmodeaccess
!
interfaceFastEthernet0/1/1
switchportmodetrunk
!
interfaceFastEthernet0/1/2
switchportmodeaccess
shutdown
!
interfaceFastEthernet0/1/3
switchportmodeaccess
shutdown
!
interfaceVlan1
noipaddress
shutdown
!
ipclassless
!
!
!
!
!
!
!
linecon0
!
lineaux0
!
linevty03
passwordadmin
login
linevty4
login
!
!
!
end
交換機1配置:
SW1#showrunning-config
Buildingconfiguration...
Currentconfiguration:1236bytes
!
version12.2
noservicepassword-encryption
!
hostnameSW1
!
!
!
!
spanning-treemodepvst
!
interfaceFastEthernet0/1
switchportmodetrunk
!
interfaceFastEthernet0/2
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
switchportaccessvlan10
switchportmodeaccess
!
interfaceFastEthernet0/11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceFastEthernet0/16
!
interfaceFastEthernet0/17
!
interfaceFastEthernet0/18
!
interfaceFastEthernet0/19
!
interfaceFastEthernet0/20
!
interfaceFastEthernet0/21
!
interfaceFastEthernet0/22
!
interfaceFastEthernet0/23
!
interfaceFastEthernet0/24
!
interfaceGigabitEthernet1/1
!
interfaceGigabitEthernet1/2
!
interfaceVlan1
noipaddress
shutdown
!
interfaceVlan10
noipaddress
!
interfaceVlan100
ipaddress10.10.100.2255.255.255.248
!
!
linecon0
!
linevty03
passwordadmin
login
linevty4
login
linevty515
login
!
!
end
交換機2的配置:
SW2#showrunning-config
Buildingconfiguration...
Currentconfiguration:1202bytes
!
version12.2
noservicepassword-encryption
!
hostnameSW2
!
!
!
!
spanning-treemodepvst
!
interfaceFastEthernet0/1
switchportmodetrunk
!
interfaceFastEthernet0/2
!
interfaceFastEthernet0/3
!
interfaceFastEthernet0/4
!
interfaceFastEthernet0/5
!
interfaceFastEthernet0/6
!
interfaceFastEthernet0/7
!
interfaceFastEthernet0/8
!
interfaceFastEthernet0/9
!
interfaceFastEthernet0/10
switchportaccessvlan20
switchportmodeaccess
!
interfaceFastEthernet0/11
!
interfaceFastEthernet0/12
!
interfaceFastEthernet0/13
!
interfaceFastEthernet0/14
!
interfaceFastEthernet0/15
!
interfaceFastEthernet0/16
!
interfaceFastEthernet0/17
!
interfaceFastEthernet0/18
!
interfaceFastEthernet0/19
!
interfaceFastEthernet0/20
!
interfaceFastEthernet0/21
!
interfaceFastEthernet0/22
!
interfaceFastEthernet0/23
!
interfaceFastEthernet0/24
!
interfaceGigabitEthernet1/1
!
interfaceGigabitEthernet1/2
!
interfaceVlan1
noipaddress
shutdown
!
interfaceVlan100
ipaddress10.10.100.3255.255.255.248
!
!
linecon0
!
linevty03
passwordadmin
login
linevty4
login
linevty515
login
!
!
end
兩台電腦使用自動獲取IP,互ping都是通的
⑧ 具體如何在1個路由里設置2個VLAN(虛擬區域網)
既然都是路由器了
干嗎還設VLAN
乾脆化幾個網段出來不就可以咯
劃分VLAN那是交換機的幹活
上面那個兄弟是思科交換機的命令
並且你最好說下你的設備是什麼牌子的,別人才好回答你
那你就分出幾個網段出來吧,普通用戶一個網段,管理員一個網段.
如:普通用戶網段為192.168.1.X
管理員網段為192.168.2.X
但話又說回來了,你在路由器里改掉默認的登陸賬號和密碼,其他用戶就不能私自管理了啊
⑨ 怎麼讓兩個VLAN經同一個路由上網
如果是路由器下面接交換機的話,交換機直接預設路由,下一跳為路由器介面IP即可
如:路由器IP:1.1.1.1
交換機互聯IP:1.1.1.2
交換機vlan10:2.2.2.1 vlan20:3.3.3.1
路由:ip route 0.0.0.0 0.0.0.0 1.1.1.1
⑩ 華為交換機一個埠怎麼加入到兩個vlan中
華為交換機提供埠組的功能,也就是把一些埠添加到一個組裡面;然後可以對這個組進行配置,這樣就能很方便的批量配置埠信息;華為交換機將把埠加入vlan的步驟如下:
1、請自行准備好華為交換機和電腦,並且讓電腦和交換機連接上;使用system-view命令,進入模式;
2、在模式下輸入port-group 1,這個1就是你的埠組的名稱;
3、接著需要添加埠到埠組,[Quidway-port-group-1]group-member
GigabitEthernet 0/0/25 to GigabitEthernet 0/0/36;
4、然後就可以批量設置埠模式,設置埠組的模式[Quidway-port-group-1]port
link-type access,這里設置為access模式;也可以是trunk模式的;
5、設置完成埠模式之後我們就可以添加到vlan了,添加到Vlan中;[Quidway-port-group-1]port default vlan 3;
6、配置完成之後用display current-configuration來查看配置;
7、這里可以看到埠已經成功配置到vlan了。