,
SW2========================================================================================
,
[SW2]说铜
# sysname sw2 ,
vlan批10 20,- - - - - -
号接口Eth-Trunk1 ,,,,,,,,,,,,
,端口链接类型trunk ,,,,,,,,,,,,,,,,,,,,,,,,
,港口树干allow-pass vlan 10 20
号接口Eth-Trunk2
,端口链接类型
树干,树干allow-pass vlan港10 20
号接口Ethernet0/0/1
,端口链接类型access ,,,,,,,,
,默认端口vlan 10号
界面Ethernet0/0/10
, eth-trunk 1,,,,,,,,,,,,,,,,,,,,,,,
号接口Ethernet0/0/11
, eth-trunk 1号
界面Ethernet0/0/12
,端口链接类型access ,,,,,,,,
,默认端口vlan 20号
界面GigabitEthernet0/0/1
, eth-trunk 2,,
号接口GigabitEthernet0/0/2
, eth-trunk 2号
SW3========================================================================================
,
sysname华为#
vlan批10 20号
号接口Eth-Trunk1 进接口
,端口链接类型trunk ,,,,,,,,,,,,,,,,,,,,,
,港口树干allow-pass vlan 10 20,,
号接口Ethernet0/0/1
#
界面Ethernet0/0/2
,端口链接类型access ,,,
,默认端口vlan 10号
界面Ethernet0/0/12
,
eth-trunk 1 #,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,把接口添加到eth-trunk 1
接口Ethernet0/0/13
, eth-trunk 1号
SW1=============================================================================================
sysname SW1
# vlan批10 20 30 100,,,
#集群使
ntdp使
民主党使
号下降illegal-mac报警
dhcp enable 号,,,,,,
# diffserv域默认
# drop-profile默认
ip号池vlan20
,网关列表192.168.20.1
,网络192.168.20.0面具255.255.255.0 ,,
, dns-list 2.2.2.2
号接口Vlanif1
号接口Vlanif10
, ip地址192.168.10.1 255.255.255.0
, dhcp选择interface ,,,,,,,,,,,,,,,,,,,,,,,,,
, dhcp服务器dns-list 1.1.1.1
号接口Vlanif20
, ip地址192.168.20.1 255.255.255.0 ,,给vlan20设置网关
, dhcp选择global ,,,
号接口Vlanif30
, ip地址192.168.30.1 255.255.255.0
, dhcp选择全球
, dhcp选择relay ,
, dhcp中继服务器ip 23.0.0.3
号接口Vlanif100
, ip地址11.0.0.1 255.255.255.0
号接口MEth0/0/1
号接口Eth-Trunk2 ,,,,,,,,,,
,端口链接类型树干
,港口树干allow-pass vlan 10 20
号接口Eth-Trunk3
,端口链接类型access
,端口默认vlan 100
号接口GigabitEthernet0/0/1
, eth-trunk 2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
号接口GigabitEthernet0/0/2
, eth-trunk 2号
界面GigabitEthernet0/0/3
,端口链接类型access ,,,,,,,,,,,,,null