思科3850路由器加了个4ESW模块,该如何配置能使4个接口上网?
交换功能接口是二层的,而我们一般意义上的路由器的快速以太接口是三层的
当一个路由器插入这样的模块,这4个交换功能接口可以理解在同一个vlan,都是互通的,默认不需要配置ip地址。但是路由器的快速以太口之间是三层的,需要配置ip地址,通过路由转发。
Luyouqi#sh run
Building configuration...
Current configuration : 815 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Luyouqi
!
!
!
!
ip dhcp excluded-address 192.168.0.254
!
ip dhcp pool cisco
network 192.168.0.0 255.255.255.0
default-router 192.168.0.254
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 12.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1/0
switchport mode access
!
interface FastEthernet0/1/1
switchport mode access
!
interface FastEthernet0/1/2
switchport mode access
!
interface FastEthernet0/1/3
switchport mode access
!
interface Vlan1
ip address 192.168.0.254 255.255.255.0
!
ip classless
!
!
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
!
end
记得让pc用dhcp获取地址,可ping通12.1.1.1(f0/0)
这是低端的交换模块,全是纯2层口,端口不能配ip地址。