我们使用的华为交换机型号为s57202-28p-li-ac,端口2与端口3上分别建了vlan2与vlan3,相关设置完后,终端pc使用DHCP自动获取不到ip,但终端pc使用固定Ip后可以连网访问外网,请问问题出在哪里?
<HUAWEI>sys
Enter system view, return user view with Ctrl Z.
[HUAWEI]int vlan1
[HUAWEI-Vlanif1]ip add 192.168.0.1 255.255.255.0
[HUAWEI-Vlanif1]
Nov 5 2018 03:34:04 HUAWEI LLDP/4/ADDCHGTRAP:OID 1.3.6.1.4.1.2011.5.25.134.2.5 Local management address is changed. (LocManAddr=192.168.0.1)
Nov 5 2018 03:34:04 HUAWEI %%01RM/4/ROUTERID_CHANGE(l)[0]:The router ID is 192.168.0.1. (InstanceID=0)
Nov 5 2018 03:34:04 HUAWEI %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface Vlanif1 has entered the UP state.
[HUAWEI-Vlanif1]quit
[HUAWEI]
Nov 5 2018 03:34:13 HUAWEI DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 1, the change loop count is 0, and the maximum number of records is 4095.
[HUAWEI]int g0/0/1
[HUAWEI-GigabitEthernet0/0/1]port link-type trunk
Info: This operation may take a few seconds. Please wait for a moment...done.
[HUAWEI-GigabitEthernet0/0/1]
Nov 5 2018 03:34:23 HUAWEI DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 2, the change loop count is 0, and the maximum number of records is 4095.
[HUAWEI-GigabitEthernet0/0/1]port trunk allow-pass vlan all
Info: This operation may take a few seconds. Please wait a moment...done.
[HUAWEI-GigabitEthernet0/0/1]
Nov 5 2018 03:34:33 HUAWEI DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 3, the change loop count is 0, and the maximum number of records is 4095.
[HUAWEI-GigabitEthernet0/0/1]quit
[HUAWEI]ip route-static 0.0.0.0 0.0.0.0 192.168.0.253
[HUAWEI]
Nov 5 2018 03:34:44 HUAWEI %%01RM/4/IPV4_DEFT_RT_CHG(l)[2]:IPV4 default Route is changed. (ChangeType=Add, InstanceId=0, Protocol=Static, ExitIf=Vlanif1, Nexthop=192.168.0.253, Neighbour=0.0.0.0, Preference=60, Label=NULL, Metric=0)
[HUAWEI]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[HUAWEI]
Nov 5 2018 03:34:53 HUAWEI DS/4/DATASYNC_CFGCHANGE:O
暂无评论