思科路由器交換模塊SM(思科路由器上安裝交換模塊)
一、思科路由器交換模塊SM
你給g1/0配置一個(gè)ip地址,然后 no shutdown。最后用這個(gè)命令service-module gigabitEthernet 1/0 session 回車,就進(jìn)入到這個(gè)sm模塊交換機(jī)里面了,進(jìn)入后顯示switch>,最后你在SM里面,就可以跟用交換機(jī)一樣盡情使用這個(gè)模塊了。如果想退還到router界面,使用ctrl+shif+6 x。即可。給哥高分吧。
寫的跟愛(ài)愛(ài)動(dòng)作一樣。你看著來(lái)勁兒吧。
二、思科路由器上安裝交換模塊
Cisco模塊化的路由器如果支持添加交換模塊,就是NM-XSW,X就是交換端口的數(shù)量,且IOS支持vlan的話,那么是可以單獨(dú)當(dāng)交換機(jī)使用的,當(dāng)然也有不足的地方,例如,生成樹(shù)的MSTP等命令不支持等。所以如果做二層的配置非常多的,就不是那么適合的,但是劃分個(gè)vlan,簡(jiǎn)單當(dāng)交換機(jī)用是任何問(wèn)題的。
你可以參考GNS3模擬器的3640系列的路由器,可以添加NM-16SW,就是添加16個(gè)快速以太網(wǎng)接口(百兆)。Cisco,多業(yè)務(wù)的路由器且模塊化的,基本支持添加交換模塊,當(dāng)然也要看具體型號(hào)。
三、思科路由器連接交換機(jī)的配置
如上圖:
ip地址設(shè)置如圖再次不再寫命令
waiwang路由器設(shè)置如下:
Router#sh run
Building configuration...
Current configuration : 550 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1
ip address 58.251.138.45 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 2.2.2.0 255.255.255.0 58.251.138.46
neiwang路由設(shè)置
Building configuration...
Current configuration : 656 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
ip dhcp pool 123
network 2.2.2.0 255.255.255.0
default-router 2.2.2.1
dns-server 2.2.2.1
!
spanning-tree mode pvst
!
interface FastEthernet0/0
ip address 2.2.2.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 58.251.138.46 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 58.251.138.0 255.255.255.0 58.251.138.45
測(cè)試結(jié)果