Router0 在 gi0/0 上有 1 个子接口,无法通过 dhcp 获取 ip。有什么我忘记了吗?
配置:
Router0(没有从 dhcp 获得 ip):
interface GigabitEthernet0/0
ip address dhcp
duplex auto
speed auto
interface GigabitEthernet0/0.1
encapsulation dot1Q 1 native
ip address 192.168.1.254 255.255.255.0
interface Vlan1
no ip address
shutdown
Router1(从 dhcp 获取 ip):
interface GigabitEthernet0/0
ip address dhcp
duplex auto
speed auto
interface Vlan1
no ip address
shutdown