基于MAC划分VLAN:动态VLAN:
...
...
The device is running!
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]
[Huawei]sysname SwitchA
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]
Jun 21 2022 19:38:01-08:00 SwitchA 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 4, t
he change loop count is 0, and the maximum number of records is 4095.
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]un in en
Info: Information center is disabled.
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]vlan batch 2
Info: This operation may take a few seconds. Please wait for a moment...done.
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]int giga
[SwitchA]int GigabitEthernet 0/0/1
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]port li
[SwitchA-GigabitEthernet0/0/1]port link-t
[SwitchA-GigabitEthernet0/0/1]port link-type hy
[SwitchA-GigabitEthernet0/0/1]port link-type hybrid
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]port hy
[SwitchA-GigabitEthernet0/0/1]port hybrid taggedvl
[SwitchA-GigabitEthernet0/0/1]port hybrid tagged vl
[SwitchA-GigabitEthernet0/0/1]port hybrid tagged vlan 2
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]
[SwitchA-GigabitEthernet0/0/1]quit
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]int g0/0/2
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]port li
[SwitchA-GigabitEthernet0/0/2]port link-
[SwitchA-GigabitEthernet0/0/2]port link-t
[SwitchA-GigabitEthernet0/0/2]port link-type h
[SwitchA-GigabitEthernet0/0/2]port link-type hybrid
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]port h
[SwitchA-GigabitEthernet0/0/2]port hybrid un
[SwitchA-GigabitEthernet0/0/2]port hybrid untagged vl
[SwitchA-GigabitEthernet0/0/2]port hybrid untagged vlan 2
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]quit
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]vlan 2
[SwitchA-vlan2]
[SwitchA-vlan2]
[SwitchA-vlan2]
[SwitchA-vlan2]
[SwitchA-vlan2]
[SwitchA-vlan2]mac-v
[SwitchA-vlan2]mac-vlan mac-a
[SwitchA-vlan2]mac-vlan mac-address 22-22-22
[SwitchA-vlan2]
[SwitchA-vlan2]
[SwitchA-vlan2]
[SwitchA-vlan2]quit
[SwitchA]
[SwitchA]
[SwitchA]
[SwitchA]int giga
[SwitchA]int GigabitEthernet 0/0/2
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]mac-v
[SwitchA-GigabitEthernet0/0/2]mac-vlan en
[SwitchA-GigabitEthernet0/0/2]mac-vlan enable
Info: This operation may take a few seconds. Please wait for a moment...done.
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]
[SwitchA-GigabitEthernet0/0/2]quit
[SwitchA]
[SwitchA]
[SwitchA]return
<SwitchA>
<SwitchA>
<SwitchA>
<SwitchA>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:1
Error: Invalid file name or Invalid extension ( *.cfg, *.zip ).
<SwitchA>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:1.zip
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<SwitchA>
请忽略以下的内容
4.1 首次登陆系统
登陆系统有这么难吗?并不难啊!虽然说是这样说,然而很多人第一次登陆 Linux的感觉都是“接下来我要干啥?”如果是以图形接口登陆的话,或许还有很多好玩的 事物, 但要是以命令行登陆的话,面对着一片黑压压的屏幕,还真不晓得要干嘛呢! 为了让大家更了解如何正确的使用Linux, 正确的登陆与离开系统还是需要说明的!
4.1.1 首次登陆CentOS 7.x图形接口
开机就开机呀!怎么还有所谓的登陆与离开呀?不是开机就能够用计算机了吗? 开什么玩笑,在Linux系统中由于是多用户多任务的环境,所以系统随时都有很多不同 的用户所下达的任务在进行, 因此正确的开关机可是很重要的!不正常的关机可能会 导致文件系统错乱,造成数据的毁损呢!这也是为什么通常我们的Linux主机都会加挂 一个不断电系统啰!
如果在第三章一切都顺利的将CentOS 7.x完成安装并且重新开机后, 应该就会出 现如下的等待登陆的图形画面才对。画面中1号箭头显示目前的日期与时间,2号箭头则 是辅助功能、语系、音量与关机钮, 3号箭头就是我们可以使用帐号登陆的输入框框, 至于4号箭头则是在使用特别的帐号登陆时才会用到的按钮。