交换、路由与防火墙手记(7)

注册 Vultr VPS 送你10美金 免费玩4个月

1、 2台交换机使用access端口连接,在access端口上配置vlan。

 

 

 

S1

 

<Huawei>sy

Entersystem view, return user view with Ctrl+Z.

[Huawei]sysnames1

[s1]vlan20

[s1-vlan20]interfacegig 0/0/1

[s1-GigabitEthernet0/0/1]portlink-type access

[s1-GigabitEthernet0/0/1]portdefault vlan 20

[s1-GigabitEthernet0/0/1]q

[s1]interfacegig 0/0/2

[s1-GigabitEthernet0/0/2]portlink-type access

[s1-GigabitEthernet0/0/2]portdefault vlan 20

[s1]ret

<s1>save

Thecurrent configuration will be written to the device.

Are yousure to continue?[Y/N]y

Nowsaving the current configuration to the slot 0.

Nov  6 2015 12:04:37-08:00 s1%%01CFM/4/SAVE(l)[2]:The user chose Y when deciding

 whether to save the configuration to thedevice.

Save theconfiguration successfully.

 

本博客所有内容是原创,如果转载请注明来源

http://blog.csdn.net/myhaspl/

S2:

<Huawei>sy

Entersystem view, return user view with Ctrl+Z.

[Huawei]sysnames2

版权声明:本文为博主原创文章,未经博主允许不得转载。

注册 Vultr VPS 送你10美金 免费玩4个月