7
Verifying the configuration
Check whether Host A and Host B can obtain IP addresses and other network settings from the
DHCP server.
Configuration files
•
Switch B:
#
vlan 5 to 6
#
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/0/2
port link-mode bridge
port access vlan 5
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 6
•
Switch A:
#
dhcp enable
#
vlan 5 to 7
#
interface Vlan-interface5
ip address 192.168.5.1 255.255.255.0
dhcp select relay
dhcp relay server-address 192.168.7.100
#
interface Vlan-interface6
ip address 192.168.6.1 255.255.255.0
dhcp select relay
dhcp relay server-address 192.168.7.100
#
interface Vlan-interface7
ip address 192.168.7.1 255.255.255.0
#
interface Ten-GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
#