码迷,mamicode.com
首页 > 其他好文 > 详细

交换机配置

时间:2016-11-06 20:09:24      阅读:820      评论:0      收藏:0      [点我收藏+]

标签:att   pad   wait   tab   host   bit   stat   bsp   cmd   

H3C路由器配置
1- 配置管理口ip及其配置路由
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]int Vlan1         
[H3C-Vlan-interface1]ip addr 192.161.14.230 255.255.255.0 ---配置管理口ip
[H3C]ip route-static 0.0.0.0 0.0.0.0 192.161.14.1  ---配置静态路由
[H3C]disp ip routing-table
Routing Tables: Public
        Destinations : 5        Routes : 5

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

0.0.0.0/0           Static 60   0            192.161.14.1    Vlan1
127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0
127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0
192.161.14.0/24     Direct 0    0            192.161.14.230  Vlan1
192.161.14.230/32   Direct 0    0            127.0.0.1       InLoop0  ----查看路由表信息

2- 配置用户及其登录
[H3C]local-user test
New local user added.
[H3C-luser-test]password sim
[H3C-luser-test]password simple ******
[H3C-luser-test]authorization-attribute level 3
[H3C-luser-test]service-type ssh

[H3C]user-interface vty 0 15
[H3C-ui-vty0-15]authentication-mode scheme
[H3C-ui-vty0-15]protocol inbound ssh

[H3C]ssh server enable ---开启ssh服务

[H3C]undo local-user luf ---删除用户


3- 配置vlan
[H3C]vlan 10
[H3C-vlan10]vlan 20
[H3C-vlan20]


[H3C-GigabitEthernet1/0/1]port link-type trunk
[H3C-GigabitEthernet1/0/1]port trunk permit  vlan all
Please wait........................................... Done
 
[H3C-GigabitEthernet1/0/1]port link-type access
[H3C-GigabitEthernet1/0/1]port access vlan 10

H3C Comware Software.
%Apr 26 12:01:20:357 2000 H3C IFNET/3/LINK_UPDOWN: Aux0/0/0 link status is UP.
%Apr 26 12:01:20:357 2000 H3C DEVM/3/RPS_ABSENT: RPS 2 is absent.
%Apr 26 12:01:33:866 2000 H3C SHELL/5/SHELL_LOGIN: Console logged in from aux0.
%Apr 26 12:01:37:725 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is system
%Apr 26 12:01:39:853 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is dis cur
%Apr 26 12:02:00:196 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is local-user super
%Apr 26 12:02:23:589 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is password has simple ******
%Apr 26 12:02:32:222 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is dis cur
%Apr 26 12:02:44:313 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is dis cur
%Apr 26 12:02:59:410 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is quit
%Apr 26 12:03:05:115 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is user-interface vty 0 15
%Apr 26 12:03:51:394 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is quit
%Apr 26 12:04:03:311 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is local-user super
%Apr 26 12:05:25:310 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is authorization-attribute level 3
%Apr 26 12:05:47:245 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is service-type ssh
%Apr 26 12:05:50:260 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is quit
%Apr 26 12:06:28:353 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is user-interface vty 0 15
%Apr 26 12:06:41:374 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is authentication-mode scheme
%Apr 26 12:06:52:615 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is protocol inbound ssh
%Apr 26 12:07:08:108 2000 H3C IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is UP.
%Apr 26 12:07:08:209 2000 H3C IFNET/3/LINK_UPDOWN: Vlan-interface1 link status is UP.
%Apr 26 12:07:08:341 2000 H3C IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Vlan-interface1 is UP.
%Apr 26 12:07:15:395 2000 H3C IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is DOWN.
%Apr 26 12:07:15:506 2000 H3C IFNET/3/LINK_UPDOWN: Vlan-interface1 link status is DOWN.
%Apr 26 12:07:15:649 2000 H3C IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Vlan-interface1 is DOWN.
%Apr 26 12:07:53:597 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is quit
%Apr 26 12:07:54:992 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is dis cur
%Apr 26 12:08:28:632 2000 H3C IFNET/3/LINK_UPDOWN: GigabitEthernet1/0/2 link status is UP.
%Apr 26 12:08:28:734 2000 H3C IFNET/3/LINK_UPDOWN: Vlan-interface1 link status is UP.
%Apr 26 12:08:28:886 2000 H3C IFNET/5/LINEPROTO_UPDOWN: Line protocol on the interface Vlan-interface1 is UP.
%Apr 26 12:08:28:887 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is local-user loushg
%Apr 26 12:08:53:610 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is password hash simple ******
%Apr 26 12:08:57:841 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is authorization-attribute level 3
%Apr 26 12:09:01:952 2000 H3C SHELL/6/SHELL_SECLOG: -Task=au0-IPAddr=**-User=**; Command is service-type ssh
%Apr 26 12:09:08:424 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is quit
%Apr 26 12:11:14:626 2000 H3C SHELL/6/SHELL_CMD: -Task=au0-IPAddr=**-User=**; Command is ssh server enable
%Apr 26 12:11:28:034 2000 H3C PKEY/6/PKEY_CREATE_HOST_KEY_SUCC: Created the host key pair successfully.
%Apr 26 12:11:36:356 2000 H3C SC/6/SC_AAA_LAUNCH: -AAAType=AUTHEN-AAAScheme= local-Service=login-UserName=super@system; AAA launched.
%Apr 26 12:11:36:357 2000 H3C SC/6/SC_AAA_SUCCESS: -AAAType=AUTHEN-AAAScheme= local-Service=login-UserName=super@system; AAA is successful.
%Apr 26 12:11:36:357 2000 H3C SC/6/SC_AAA_LAUNCH: -AAAType=AUTHOR-AAAScheme= local-Service=login-UserName=super@system; AAA launched.
%Apr 26 12:11:36:357 2000 H3C SC/6/SC_AAA_SUCCESS: -AAAType=AUTHOR-AAAScheme= local-Service=login-UserName=super@system; AAA is successful.
%Apr 26 12:11:36:359 2000 H3C SC/6/SC_AAA_LAUNCH: -AAAType=ACCOUNT-AAAScheme= local-Service=login-UserName=super@system; AAA launched.
%Apr 26 12:11:36:360 2000 H3C SC/6/SC_AAA_SUCCESS: -AAAType=ACCOUNT-AAAScheme= local-Service=login-UserName=super@system; AAA is successful.
%Apr 26 12:11:36:378 2000 H3C SSH/6/SSH_LOGIN: STEL user super (IP: 192.161.14.231) logged in successfully.
%Apr 26 12:11:36:737 2000 H3C SHELL/5/SHELL_LOGIN: super logged in from 192.161.14.231.
%Apr 26 12:11:40:300 2000 H3C CFGMAN/5/CFGMAN_CFGCHANGED: -EventIndex=1-CommandSource=2-ConfigSource=4-ConfigDestination=2; Configuration is changed.
%Apr 26 12:11:44:761 2000 H3C SHELL/6/SHELL_CMD: -Task=vt0-IPAddr=192.161.14.231-User=super; Command is sys

交换机配置

标签:att   pad   wait   tab   host   bit   stat   bsp   cmd   

原文地址:http://www.cnblogs.com/flyback/p/6036006.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!