思科路由器连接交换机的配置

发布网友 发布时间:2022-04-22 00:37

我来回答

1个回答

热心网友 时间:2024-02-21 13:48

如上图:

ip地址设置如图再次不再写命令
waiwang路由器设置如下:

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
 plex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 ip address 58.251.138.45 255.255.255.0
 plex 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路由设置

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
 plex auto
 speed auto
!
interface FastEthernet0/1
 ip address 58.251.138.46 255.255.255.0
 plex 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

测试结果

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com