如下拓撲結構圖,寫出各路由器與交換機的配置,使所有的計算機之間可以正常通訊,請使用EIGRP路由協議

2021-05-05 08:09:15 字數 5037 閱讀 7563

1樓:軒_燦爛

樓主,你好哇~

配置如下 ,這個很簡單,翻翻ccna看三天就會了。

——————————————————————————

路由器配置:

router>en

router#conf t

enter configuration commands, one per line. end with cntl/z.

router(config)#inte***ce f0/1

router(config-if)#no shutdown

router(config-if)#ip add 172.16.5.1 255.255.255.0

router(config-if)#ip nat outside

router(config-if)#exit

router(config)#inte***ce f0/0

router(config-if)#no shutdown

router(config-if)#ip address 172.16.4.2 255.255.255.0

router(config-if)#ip nat inside

router(config-if)#description -------lan

router(config-if)#exit

router(config)#do wr

building configuration...

[ok]

router(config)#access-list 1 permit 172.16.0.0 0.0.255.255

router(config)#ip nat inside source list 1 inte***ce f0/1 overload

router(config)#router eigrp 10

router(config-router)#network 172.16.5.0 0.0.0.255

router(config-router)#network 172.16.4.0 0.0.0.255

router(config-router)#exit

router(config)#do wr

building configuration...

[ok]

router(config)#hostname r1

r1(config)#do wr

building configuration...

rchange: ip-eigrp 10: neighbor 172.16.4.1 (fastethernet0/0) is up: new adjacency

%dual-5-nbrchange: ip-eigrp 10: neighbor 172.

16.4.1 (fastethernet0/0) is resync:

graceful restart

r1(config)#router eigrp 10

r1(config-router)#no auto-summary

————————————————————

三層3560配置:

sw3#show run

building configuration...

current configuration : 1792 bytes

hostname sw3

ip dhcp excluded-address 172.16.2.1

ip dhcp excluded-address 172.16.3.1

ip dhcp pool 10

network 172.16.2.0 255.255.255.0

default-router 172.16.2.1

dns-server 202.103.24.68

ip dhcp pool 20

network 172.16.3.0 255.255.255.0

default-router 172.16.3.1

dns-server 202.103.24.68

ip routing

spanning-tree mode pvst

inte***ce fastethernet0/1

switchport trunk encapsulation dot1q

switchport mode trunk

inte***ce fastethernet0/2

switchport access vlan 2

inte***ce vlan1

no ip address

shutdown

!inte***ce vlan2

ip address 172.16.4.1 255.255.255.0

!inte***ce vlan10

ip address 172.16.2.1 255.255.255.0

!inte***ce vlan20

ip address 172.16.3.1 255.255.255.0

!router eigrp 10

network 172.16.4.0 0.0.0.255

network 172.16.2.0 0.0.0.255

network 172.16.3.0 0.0.0.255

no auto-summary

————————————————————

兩個2層交換機 2950配置;

switch>en

switch#conf t

enter configuration commands, one per line. end with cntl/z.

switch(config)#hostname sw2

sw2(config)#inte***ce f0/3

sw2(config-if)#switchport mode trunk

sw2(config-if)#switchport trunk allowed vlan all

sw2(config-if)#exit

sw2(config)#vtp mode client

setting device to vtp client mode.

sw2(config)#vtp domain bd

domain name already set to bd.

sw2(config)#vtp pa

sw2(config)#vtp password bd

setting device vlan database password to bd

sw2(config)#inte***ce f0/1

sw2(config-if)#switchport mode access

sw2(config-if)#switchport access vlan 10

sw2(config-if)#exit

sw2(config)#inte***ce f0/2

sw2(config-if)#switchport mode a

sw2(config-if)#switchport mode access

sw2(config-if)#switchport access vlan 20

sw2(config-if)#exit

sw2(config)#ip default-gateway 172.16.4.1

sw2(config)#inte***ce f0/24

sw2(config-if)#switchport mode trunk

sw2(config-if)#

%lineproto-5-updown: line protocol on inte***ce fastethernet0/24, changed state to down

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

sw2(config-if)#switchport trunk allowed vlan all

sw2(config-if)#exit

————————————————————

switch>en

switch#conf t

enter configuration commands, one per line. end with cntl/z.

switch(config)#hostname sw1

sw1(config)#inte***ce f0/24

sw1(config-if)#switchport mode trunk

sw1(config-if)#switchport trunk allowed vlan all

sw1(config-if)#exit

sw1(config)#vtp mode client

sw1(config)#vtp domain bd

domain name already set to bd.

sw1(config)#vtp password bd

setting device vlan database password to bd

sw1(config)#inte***ce f0/1

sw1(config-if)#switchport mode access vlan 10

^% invalid input detected at '^' marker.

sw1(config-if)#switchport mode access

sw1(config-if)#switchport access vlan 10

sw1(config-if)#exit

sw1(config)#inte***ce f0/2

sw1(config-if)#switchport mode access

sw1(config-if)#switchport access vlan 20

sw1(config)#ip default-gateway 172.16.4.1

sw1(config)#do wr

路由器交換機的配置問題路由器和交換機的配置。不要複製的

建議樓主按照以下思路檢查下實驗的步驟 1.保證你的內網機器能上外網,但只有乙個外網ip,你要配置pat。access list 1 permit any ip nat inside source list 1 inte ce e0 1 overload int e0 0 ip nat inside ...

交換機的常用配置命令,交換機與路由器的常用配置命令

2960 en 第一次密碼為空 跑不動h1z1這個大型遊戲,你這樣的配置遊戲效能級別,只能用入門級低端來定位,獨顯遊戲效能低階,cpu一般,記憶體一般,h1z1,獨顯最低推薦gtx275以上級別,筆記本相當於比gt940mx效能高一些的效能,要執行流暢需要gtx860m 950m級別才能行,換算成魯...

交換機與路由器的作用區別,交換機和路由器的主要區別是什麼?

區別如下 1 位址不同。傳統交換機是從網橋發展而來的,它根據mac位址,通過站表選擇路由,站表的建立和維護由交換機自動進行。路由器屬於osi第三層網路裝置,它根據ip位址進行定址,通過路由表路協議產生。2 性質不同。交換機主要是完成相同或相似的物理介質和鏈路協議的網路互聯,而不會湧來在物理層面之間進...