问题遇到的现象和发生背景
- 要求:
(1) 按照拓扑图所示,配置各个网络设备的 IP 地址。
(2) 交换机 Switch0 上的配置要求。
VLAN 10
VLAN 10 虚接口 IP
端口 f0/1-10 划分给 vlan10
f0/24 设置为 trunk
用户名 cisco 密码 cisco 实现 telnet 安全管理
(3) 交换机 Switch1 上的配置要求。
VLAN 20
VLAN 20 虚接口 IP
端口 f0/1-10 划分给 vlan20
f0/24 设置为 trunk
用户名 cisco 密码 cisco 实现 telnet 安全管理
(4) 交换机 Multilayer Switch 0 上的配置要求。
vlan 10 ip 地址 192.168.1.1/24
vlan 20 ip 地址 192.168.2.1/24
g0/1 ip 地址 192.168.3.2/24
f0/1-2 设置为 trunk,802.1q 帧封装
DHCP
VLAN 10 pool 192.168.1.0/24
网关 192.168.1.1
排除地址 192.168.1.11010
VLAN 20 pool 192.168.2.0/24
网关 192.168.2.1
排除地址 192.168.2.1
三层 VLAN 互访,启用路由功能
到外网的默认路由 (经过 Router1 到外网)
(5) 路由器 Router 0 上的配置要求。
g0/0 ip 地址 192.168.3.1/24
s/0/0 ip 地址 202.116.1.1/30
HDLC
到内网的默认路由(经过三层交换机到内网)
RIP
静态路由重分发
(6) 路由器 Router 1 上的配置要求。
s/0/0 ip 地址 202.116.1.2/30
lo0 ip 地址 172.0.0.1/24
HDLC
时钟
RIP
尝试过的解决方法
尝试配置了一下,不会了
switch0/1
vlan 10
exit
interface range fa0/1-10
swit mode access
swit access vlan 10
exit
interface vlan 10
ip address 192.168.1.2 255.255.255.0
exit
interface fa0/24
swit mode trunk
exit
username cisco password cisco
multilayer switch
vlan 10
vlan 20
exit
interface vlan 10
ip address 192.168.1.1 255.255.255.0
interface vlan 20
ip address 192.168.2.1 255.255.255.0
exit
interface gi 0/1
no switchport
ip address 192.168.3.2 255.255.255.0
exit
interface range fa0/1-2
swit trunk encap dot1q
swit mode trunk
ip dhcp exclude 192.168.1.1 192.168.1.10
ip dhcp exclude 192.168.2.1 192.168.2.10
ip dhcp pool vlan10pool
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
ip dhcp pool vlan20pool
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1