hcia 第六天

在AR上

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.

[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dot1q termination vid 2
[Huawei-GigabitEthernet0/0/0.1]ip address 12.1.1.1 24
Nov 22 2022 22:43:45-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0.1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0.1]quit
[Huawei]interface g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]dot1q termination vid 3
[Huawei-GigabitEthernet0/0/0.2]ip address 34.1.1.1 24
Nov 22 2022 22:44:26-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/0.2 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0.2]quit
[Huawei]interface g0/0/0.3
[Huawei-GigabitEthernet0/0/0.3]dot1q termination vid 3
Error: Failed to configure the interface because the VLAN has been configured on
 interface GigabitEthernet0/0/0.2.
[Huawei-GigabitEthernet0/0/0.3]ip address 23.1.1.1 24
[Huawei-GigabitEthernet0/0/0.3]quit
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool 1
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-1]network 12.1.1.0 mask 255.255.255.0
[Huawei-ip-pool-1]gateway-list 12.1.1.1
[Huawei-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
[Huawei-ip-pool-1]quit
[Huawei]dhcp enable
[Huawei]ip pool 2
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-2]network 34.1.1.0 mask 24
[Huawei-ip-pool-2]gateway-list 34.1.1.1
[Huawei-ip-pool-2]dns-list 8.8.8.8 114.114.114.114
[Huawei-ip-pool-2]quit
[Huawei]dhcp enable 
[Huawei]ip pool 3
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-3]network 23.1.1.0 mask 24
[Huawei-ip-pool-3]gateway-list 23.1.1.1
[Huawei-ip-pool-3]dns-list 8.8.8.8 114.114.114.114
[Huawei-ip-pool-3]quit
[Huawei]interface g0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dhcp select global
[Huawei-GigabitEthernet0/0/0.1]quit
[Huawei]interface g0/0/0.2
[Huawei-GigabitEthernet0/0/0.2]dhcp select global 
[Huawei-GigabitEthernet0/0/0.2]quit
[Huawei]interface g0/0/0.3
[Huawei-GigabitEthernet0/0/0.3]dhcp select global

在交换机上


<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]vlan batch 2 
[Huawei]vlan batch 2 to 4
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]interface e0/0/2
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei]interface e0/0/3
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/3]port default vlan 3
[Huawei-Ethernet0/0/3]
[Huawei-Ethernet0/0/3]interface e0/0/4
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-Ethernet0/0/4]port default vlan 4
[Huawei-Ethernet0/0/4]quit
[Huawei]interface e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port link-type trunk
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan all

Please Press ENTER.

测试

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值