1.3.2探宝之路演绎
1、PC01自动获取IP地址
2、使用arp -a查询PC的网关地址对应的mac地址
3、在交换机命令行界面,使用查询mac地址命令,查询网关地址对应的mac地址,即探宝成功。
1.3.3设备配置说明
1.3.3.1HX交换机
sysname HX
#
vlan batch 10 20
#
lldp enable
dhcp enable
ip pool vlan20
gateway-list 192.168.20.254
network 192.168.20.0 mask 255.255.255.0
#
aaa
local-user admin password simple admin
local-user admin privilege level 15
local-user admin service-type telnet
#
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
#
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
dhcp select global
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
#
user-interface vty 0 4
authentication-mode aaa
1.3.3.2 JR01交换机
sysname JR01
#
vlan batch 10 20
#
lldp enable
vlan 10
description guanli
vlan 20
description yonghu
#
aaa
local-user admin password simple admin
local-user admin privilege level 15
local-user admin service-type telnet
#
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
#
user-interface vty 0 4
authentication-mode aaa
1.3.3.3 JR02交换机
sysname JR02
#
vlan batch 10 20
#
lldp enable
vlan 10
description guanli
vlan 20
description yonghu
#
aaa
local-user admin password simple admin
local-user admin privilege level 15
local-user admin service-type telnet
#
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
#
user-interface vty 0 4
authentication-mode aaa
第2章探宝总结
宝藏就在那里,寻找宝藏的路径却有很多条,有没有其它办法了呢?一般问这样的问题,答有,绝对得分。
第1种:拔线操作,具体不陈述了,大家都懂得。
第2种:查看每个接口的流量状态,一般上行口的接口流量最大。