连着开trunk的switch,但是配置子接口,主接口的IP地址还有用吗?

作者:思科培训 来源:来自网络 发布时间:09-12-07

学员提问:

interface GigabitEthernet0/0
ip address 10.36.34.1 255.255.255.0
duplex auto
speed auto
h323-gateway voip interface
h323-gateway voip bind srcaddr 10.36.34.1
!
interface GigabitEthernet0/0.2
encapsulation dot1Q 2
ip address 10.39.255.1 255.255.255.0
no snmp trap link-status

下面连着开trunk的switch,但是配置子接口,主接口的IP地址还有用吗?

 

捷盈讲师及学员解答:

主接口IP还是有用的。因为子接口是划分了VLAN的,所以主接口的IP可以理解为主接口下NATIVE VLAN的IP地址。