思科模擬器上由路由器交換機建立兩個VLAN

2021-03-08 22:00:20 字數 5948 閱讀 6411

1樓:匿名使用者

一、路由器實現單臂路由

router配置:

62616964757a686964616fe58685e5aeb931333262353365

router>en

router#conf t

router(config)#

router(config)#int f0/0.1

router(config-subif)#encapsulation dot1q 2

router(config-subif)#ip add 10.10.20.254 255.255.255.0

router(config-subif)#exit

router(config)#int f0/0.2

router(config-subif)#encapsulation dot1q 3

router(config-subif)#ip add 10.10.30.254 255.255.255.0

router(config-subif)#exit

router(config)#

router(config)#int f0/0

router(config-if)#no shutdown

router(config-if)# exit

router(config)#

switch配置:

switch>en

switch#vlan database

switch(vlan)#vlan 2 name vlan2

switch(vlan)#vlan 3 name vlan3

switch(vlan)#exit

switch#conf t

switch(config)#int f0/1

switch(config-if)#switchport mode trunk

switch(config-if)#no shutdown

switch(config-if)#exit

switch(config)#int f0/2

switch(config-if)#switchport mode access

switch(config-if)#switchport access vlan 2

switch(config-if)#no shutdown

switch(config-if)#exit

switch(config)#int f0/3

switch(config-if)#switchport mode access

switch(config-if)#switchport access vlan 3

switch(config-if)#no shutdown

switch(config-if)#exit

switch(config)#

pc1配置:

ip  :10.10.20.1

掩碼:255.255.255.0

閘道器:10.10.20.254

pc2配置:

ip  :10.10.30.1

掩碼:255.255.255.0

閘道器:10.10.30.254

2樓:但以理

乙個交換機三個路由器如果路由器只是通過交換機連線。這樣只可以在乙個vlan裡面,除非你的交換機是三層交換,否則永遠都不可能通。

怎麼在思科模擬器上搭建三層交換機vlan間路由

3樓:匿名使用者

交換機的線應該是連線到路由器的wan口了。如果是這樣建議按照以下步驟配置:

1、將交換機連線路由器的埠加入到vlan中。(vlan1或vlan2都可以,當然可以建立乙個新的vlan,但要給vlan介面配置ip位址,作為vlan內主機的閘道器)

2、路由器配置,網際網路介面ip選擇靜態ip,和上個步驟相對應,如果交換機介面加入vlan1,就使用192.168.10.

x,如果交換介面加入vlan2就使用192.168.20.

x。別忘了閘道器。

3、配置路由器的ip位址為192.168.40.1,啟用dhcp,點頁面下面的保持配置。

筆記本上獲取ip或者自動獲取,一定要看有沒有閘道器位址。

交換機上要使用ip routing命令開啟vlan間路由。

4樓:籃球之魔科比

模型上再放乙個支援單臂路由的思科路由器即可

連線交換機的路由器介面上再分子介面,和乙個個vlan在對應的網段。

5樓:勵忍葛曼

這個問題就需要問網工啊,網路工程師。您可以從c**a.np或者ie的資料中搜尋到這個問題的答案。

路由器選擇的話,我建議你選擇360

在思科模擬器上,如何用一台路由器,一台交換機,和4臺pc,要求劃分兩個vlan是的pc可訪問不同vlan的pc

6樓:匿名使用者

對交換機的配置:

switch>

switch>

switch>

switch>en

switch>

switch>en

switch#conf t

enter configuration ***mands, one per line.  end with **tl/z.

switch(config)#exit

%sys-5-config_i: configured from console by console

switch#vlan d

switch#vlan database

% warning: it is re***mended to configure vlan from config mode,

as vlan database mode is being deprecated. please consult user

documentation for configuring vtp/vlan in config mode.

switch(vlan)#vlan 2 name a

vlan 2 added:

name: a

switch(vlan)#vlan 3 name b

vlan 3 added:

name: b

switch(vlan)#exit

exiting....

switch#conf t

enter configuration ***mands, one per line.  end with **tl/z.

switch(config)#int vlan 2

%link-5-changed: inte***ce vlan2, changed state to upswitch(config-if)#

switch(config-if)#no shu

switch(config-if)#int vlan 3

%link-5-changed: inte***ce vlan3, changed state to upswitch(config-if)#

switch(config-if)#no shu

switch(config-if)#int f0/1

switch(config-if)#sw m ac

switch(config-if)#sw ac vlan 2

%lineproto-5-updown: line protocol on inte***ce vlan2, changed state to upswitch(config-if)#

switch(config-if)#int f0/2

switch(config-if)#sw m ac

switch(config-if)#sw ac vlan 3

%lineproto-5-updown: line protocol on inte***ce vlan3, changed state to upswitch(config-if)#

switch(config-if)#int f0/3

switch(config-if)#sw m ac

switch(config-if)#sw ac vlan 2

switch(config-if)#int f0/4

switch(config-if)#sw m ac

switch(config-if)#sw ac vlan 3

switch(config-if)#int f0/5

switch(config-if)#no shu

switch(config-if)#sw m ac

switch(config-if)#sw m tr

switch(config-if)#exit

switch(config)#exit

%sys-5-config_i: configured from console by console

switch#

對路由器的配置:

press return to get started!

router>

router>

router>en

router#conf t

enter configuration ***mands, one per line.  end with **tl/z.

router(config)#int f0/0

router(config-if)#no shu

%link-5-changed: inte***ce fastether***0/0, changed state to up

%lineproto-5-updown: line protocol on inte***ce fastether***0/0, changed state to up

router(config-if)#no ip ad

router(config-if)#no ip address

router(config-if)#int f0/0.1

%link-5-changed: inte***ce fastether***0/0.1, changed state to up

%lineproto-5-updown: line protocol on inte***ce fastether***0/0.1, changed state to uprouter(config-subif)#

router(config-subif)#en

router(config-subif)#encapsulation d

router(config-subif)#encapsulation dot1q 2

router(config-subif)#ip ad

router(config-subif)#ip address 192.168.1.1 255.255.255.0

router(config-subif)#int f0/0.2

%link-5-changed: inte***ce fastether***0/0.2, changed state to up

%lineproto-5-updown: line protocol on inte***ce fastether***0/0.2, changed state to uprouter(config-subif)#

router(config-subif)#en

router(config-subif)#encapsulation d

router(config-subif)#encapsulation dot1q 3

router(config-subif)#ip ad

router(config-subif)#ip address 192.168.2.1 255.255.255.0

router(config-subif)#exit

router(config)#

我是在模擬

器上做的,你可以看看這些命令,要是不明白的話再問吧。

思科模擬器,路由器和交換機如何聯合使用

樓主,你好 提問三大要素,拓撲圖配置 需求既然談到了物理層,想必學過osi 7層模型吧?那麼請問 圖三中,哪些位於 資料鏈路層,哪些位於網路層?路由器直連路由有用嗎?3560交換機是哪一層?交換機是哪一層?路由器直連了兩台交換機,路由器如何與交換機互動報文資訊?work 宣告位址段在路由器上到底是幹...

思科模擬器交換機怎麼配置ip在思科模擬器上如何進行交換機的基本配置?

int f0 1 no switchport ip add x.x.x.x x.x.x.x二層交換機配不了ip 模擬器裡面安裝個我們軟體 很多都可以用 但效果可能不太一樣 找到適合自己的才是最好的。可以測試一下。軟體名稱 兔子,動態。ip 軟體語言 簡體中文 軟體類別 網路加速 執行環境 winxp...

思科交換機模擬實驗路由器交換機的網路模擬實驗用除了思科模擬器以外還有什麼模擬器要好用的功能強大的

作為一台沒有來3層功能的交換機,自給vlan配ip只是為了遠端管理tel 時候使用,沒有其他實際意義,在相連pc的資料報通訊中也不起任何作用,因為2層交換本身並不維護路由表。你ping pc自己的位址不通的話乙個可能是網絡卡的tcp ip協議就沒起來,配置不正確,所以網絡卡和交換機相連後燈的狀態也不...