[Quidway-vlan20]description huanlianwang对vlan 20进行描述 [Quidway-vlan20]qu退出
[Quidway]interface Ethernet0/0/1进入接口Ethernet0/0/1
[Quidway-Ethernet0/0/1]port link-type access 配置该接口为access口(电脑接口) [Quidway-Ethernet0/0/1]port default vlan 10配置该接口允许vlan 10通过 [Quidway-Ethernet0/0/1]qu退出
[Quidway]interface Ethernet0/0/2进入接口Ethernet0/0/2
[Quidway-Ethernet0/0/2]port link-type access配置该接口为access口(电脑接口) [Quidway-Ethernet0/0/2]port default vlan 20配置该接口允许vlan 20通过
[Quidway-Ethernet0/0/2]qu退出
[Quidway]interface GigabitEthernet 0/0/1进入接口GigabitEthernet 0/0/1
[Quidway-GigabitEthernet0/0/1]port link-type trunk配置该接口为trunk口(交换机与交换机或者与PTN间互联接口)
[Quidway-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 100配置该接口允许vlan10、20、100通过
[Quidway-GigabitEthernet0/0/1]dis th(查看当前接口配置) #
interface GigabitEthernet0/0/1 port link-type trunk
port trunk allow-pass vlan 10 20 100 #
return
[Quidway]dis cu查看当前配置 #
!Software Version V100R006C05 sysnameQuidway #
undo info-center enable #
vlan batch 10 20 100 #
undo http server enable
undo http secure-server enable #
vlan 20
descriptionhuanlianwang #
aaa
authentication-scheme default authorization-scheme default accounting-scheme default domain default
domaindefault_admin
local-user admin password cipher %@%@5d~9:M^ipCfL\\iB)EQd>3Uwe%@%@ local-user admin service-type http #
interface Ethernet0/0/1
port link-type access port default vlan 10 #
interface Ethernet0/0/2 port link-type access port default vlan 20 #
interface Ethernet0/0/3 #
interface Ethernet0/0/4 #
interface Ethernet0/0/5 #
interface Ethernet0/0/6 #
interface Ethernet0/0/7 #
interface Ethernet0/0/8 #
interface GigabitEthernet0/0/1 port link-type trunk
port trunk allow-pass vlan 10 20 100 #
interface NULL0
# user-interface con 0
authentication-mode password user privilege level 15 set authentication
cipher %@%@/ji3%user-interfacevty 0 4 #
return
password
The current configuration will be written to the device. Are you sure to continue?[Y/N]y按Y
Info: Please input the file name(*.cfg,*.zip)[vrpcfg.zip]: flash:/vrpcfg.zip exists, overwrite?[Y/N]:y
Now saving the current configuration to the slot 0 . Info: Save the configuration successfully.
The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:y按Y Warning: Now clearing the configuration in the device. Info: Succeeded in clearing the configuration in the device.
当忘记交换机登陆密码后,请按以下步骤操作:重启交换机 BIOS LOADING ...
Copyright (c) 2008-2011 HUAWEI TECH CO., LTD. (Ver149, Mar 15 2013, 11:02:25)
Press Ctrl+B to enter BOOTROM menu ... 2当出现Press Ctrl+B to enter BOOTROM menu ...时按Ctrl+B
password: BOOTROM密码为Admin@huawei.com BOOTROM MENU
1. Boot with default mode 2. Enter serial submenu 3. Enter startup submenu 4. Enter ethernet submenu 5. Enter filesystem submenu 6. Modify BOOTROM password 7. Clear password for console user 8. Reboot
Enter your choice(1-8): 7按7
Note: Clear password for console user? Yes or No(Y/N): y按y
Clear password for console user successfully. Choose \ password. Note: Do not choose \effect.
BOOTROM MENU
1. Boot with default mode 2. Enter serial submenu 3. Enter startup submenu 4. Enter ethernet submenu 5. Enter filesystem submenu 6. Modify BOOTROM password 7. Clear password for console user 8. Reboot
Enter your choice(1-8): 1按1后设备自动启动,启动后直接输入初始登陆密码
Decompressing Image file ... done
There is no record in region Exception.
PPI DEV SysInit..................OK
Hard system init.................OK
Begin to start the system, please waiting ......
VOS VFS init.....................OK Startup File Check...............OK VOS monitor init.................OK CFM init advance.................OK PAT init ........................OK VOS VFS init hind ...............OK
VRP_Root begin...
VRP_InitializeTask begin... Init the Device Link.............OK CFG_PlaneInit begin..............OK CFM_Init begin...................OK CLI_CmdInit begin................OK
VRP_RegestAllLINKCmd begin.......OK create task begin................ taskinit begin...
Recover configuration...OK! Press ENTER to get started.
Please configure the login password (6-16) Enter Password:
Confirm Password:
配置交换机三层地址
[Quidway]vlan 4094 创建vlan [Quidway-vlan4094]qu
[Quidway]interface Vlanif 4094进入三层接口
[Quidway-Vlanif4094]ip address 192.168.1.1 255.255.255.0配置IP地址 [Quidway-Vlanif4094]description guanli描述该接口 [
配置telnet密码认证
[Quidway]user-interface vty 0 4
[Quidway-ui-vty0-4]authentication-mode password
[Quidway-ui-vty0-4]set authentication password cipher huawei123 [Quidway-ui-vty0-4]user privilege level 15