Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
System is starting...
************************************************************************
H3C MSR20-11 BootWare, Version 2.09
************************************************************************
Copyright (c) 2004-2008 Hangzhou H3C Technologies Co., Ltd.
Compiled Date : Jan 5 2009
CPU Type : MPC8323E
CPU L1 Cache : 16KB
CPU Clock Speed : 333MHz
Memory Type : DDR SDRAM
Memory Size : 256MB
Memory Speed : 266MHz
BootWare Size : 1024KB
CPLD Version : 1.0
PCB Version : 3.0
[H3C]int e0/0
[H3C-Ethernet0/0]ip add
[H3C-Ethernet0/0]ip address 172.17.0.1 255.255.255.0
[H3C-Ethernet0/0]quit
[H3C]
[H3C]int s0/0
[H3C-Serial0/0]ip address 172.20.0.1 255.255.255.252
[H3C-Serial0/0]link-protocol hdlc or link-protocol ppp
[H3C-Serial0/0]quit
[H3C]
[H3C]sysname MSR2011
[MSR2011]
[H3C]int e0/1
[H3C-Ethernet0/1]port link-mode route
[H3C-Ethernet0/1]ip address 172.18.0.1 255.255.255.0
[H3C-Ethernet0/1]dis this
interface Ethernet0/1
port link-mode route
ip address 172.18.0.1 255.255.255.0
[H3C]user-interface vty 0 4
[H3C-ui-vty0-4]authentication-mode scheme
[H3C-ui-vty0-4]quit
[H3C]
[H3C]local-user test
New local user added.
[H3C-luser-test]password simple xyz or [H3C-luser-test]password cipher xyz
[H3C-luser-test]service-type telnet
[H3C-luser-test]authorization-attribute level 3
[H3C-luser-test]quit
[H3C]
[H3C]user-interface aux 0
[H3C-ui-aux0]authentication-mode password
[H3C-ui-aux0]set authentication password simple 3com
[H3C]user-interface aux 0 (
[H3C-ui-aux0]undo authentication-mode
[H3C-ui-aux0]undo set authentication password
[H3C]dns resolve
[H3C]dns server 4.2.2.2
[H3C]dis ip int brie (To view ip address details of interfaces)
*down: administratively down , (s): spoofing
Interface Physical Protocol IP Address Description
Aux0 down down unassigned Aux0 Inte...
Ethernet0/0 up up 172.17.0.1 Ethernet0...
Ethernet0/1 up up 172.18.0.1 Ethernet0...
Serial0/0 up up 172.20.0.1 Serial0/0...
Vlan-interface1 down down 192.168.1.1 Vlan-inte...
[H3C]save abc.cfg
The current configuration will be saved to flash:/abc.cfg. Continue? [Y/N]:y
Now saving current configuration to the device.
Saving configuration flash:/abc.cfg. Please wait..........
Configuration is saved to flash successfully.
<H3C>dir
Directory of flash:/
0 -rw- 13738388 Jan 01 2007 00:02:22 main.bin
1 -rw- 1008 Jan 01 2007 00:12:00 startup.cfg
2 -rw- 1008 Jan 01 2007 00:13:08 abc.cfg
<H3C>delete abc.cfg
Delete flash:/abc.cfg?[Y/N]: y
%Delete file flash:/abc.cfg...Done.
[H3C]user-interface console 0
[H3C-ui-console0]screen-length 0 ( 0 means to display all information at one time)
[H3C-ui-console0]undo screen-length (To restore screen length to default 24 lines)
[H3C]ip count enable (To Enable IP accounting)
[H3C]interface ethernet 0/0
[H3C-Ethernet0/0]ip count inbound-packets
[H3C-Ethernet0/0]ip count outbound-packets
BGP Config :-
bgp 64520 (where 64520 is BGP no.)
import-route direct
import-route static
undo synchronization
peer x.x.x.x as-number 9730 (where x.x.x.x is ISP side POP end IP)
#
multicast routing-enable
#
acl number 2111
rule 0 permit source 239.0.0.2 0 (where 239.0.0.2 is multicast group1)
rule 1 permit source 239.0.0.3 0 (where 239.0.0.3 is multicast group2)
rule 3 deny
#
interface Ethernet0/0
port link-mode route
ip address x.x.x.x x.x.x.x
igmp enable
igmp version 3
pim sm
#
pim
ssm-policy 2111
#
multicast routing-enable
#
acl number 2111
rule 0 permit source 239.0.0.2 0 (where 239.0.0.2 is multicast group1)
rule 1 permit source 239.0.0.3 0 (where 239.0.0.3 is multicast group2)
rule 3 deny
#
interface Ethernet0/0
port link-mode route
ip address x.x.x.x x.x.x.x
igmp enable
igmp version 3
igmp static-group 239.0.0.2 source 192.168.2.X (where 192.168.2.X is multicast source)
igmp static-group 239.0.0.3 source 192.168.3.X (where 192.168.3.X is multicast source)
pim sm
#
pim
ssm-policy 2111
ftp> ls
200 Port command okay.
150 Opening ASCII mode data connection for /*.
main.bin
startup.cfg
abc.cfg
226 Transfer complete.
ftp: 34 bytes received in 0.40Seconds 0.08Kbytes/sec.
ftp>get abc.cfg (To take backup of Firmware/config file from Router to PC)
200 Port command okay.
150 Opening ASCII mode data connection for /abc.cfg.
226 Transfer complete.
ftp: 2814 bytes received in 0.00Seconds 2814000.00Kbytes/sec.
ftp> quit
221 Server closing.
ftp>put abc.cfg (To restore Firmware/config file from PC to Router)
To set new boot-loader file for boot startup use foll. Command.
<H3C>dis boot-loader
The boot file used at this reboot:cfa0:/ msr201x-cmw520-r1719p01.bin attribute: main
The boot file used at the next reboot:cfa0:/main.bin attribute: main
The boot file used at the next reboot:cfa0:/main.bin attribute: backup
Failed to get the secure boot file used at the next reboot!
[H3C]interface e0/0
[H3C-Ethernet0/0]ip netstream inbound
[H3C-Ethernet0/0]ip netstream outbound
To set the netflow server setting, please ensure to check the port number(9996).
[H3C]ip netstream export host x.x.x.x 9996 (where x.x.x.x is Netflow server IP add.)
[H3C]ip netstream export source interface e0/1
To configure the SNMP basic information, including version and community name.
#
dns resolve
dns server X.X.X.X (where X.X.X.X is dns server IP address)
#
acl number 2001
rule 0 permit source 192.168.1.0 0.0.0.255 (where 192.168.1.0 is local LAN network)
#
interface Ethernet0/0.100
vlan-type dot1q vid 100
ip address 172.16.4.22 255.255.255.252 (MPLS Link IP address)
#
interface Ethernet0/0.200
vlan-type dot1q vid 200
nat outbound 2001
ip address 125.20.4.226 255.255.255.252 (Internet Link IP address)
#
interface Vlan-interface1 or interface Ethernet0/1
ip address 192.168.1.1 255.255.255.0 (Local LAN Network)
ip address 125.20.8.225 255.255.255.240 sub (Public IP Pool)
#
ip route-static 0.0.0.0 0.0.0.0 125.20.4.225 (Default Route to Internet Link)
#
#
dns resolve
dns server X.X.X.X (where X.X.X.X is dns server IP address)
#
acl number 2001
rule 0 permit source 192.168.0.0 0.0.0.255
#
interface Ethernet0/0
port link-mode route
nat outbound 2001
ip address X.X.X.X 255.255.255.252 (Public IP address)
#
interface Ethernet0/1
port link-mode route
ip address 192.168.0.1 255.255.255.0 (Local LAN Network)
#
ip route-static 0.0.0.0 0.0.0.0 X.X.X.X (Default Route to Internet Link)
#
Tunnel Interface Config :-
[H3C]interface tunnel 0
[H3C-Tunnel0]source X.X.X.X (X.X.X.X is source IP add.)
[H3C-Tunnel0]destination Y.Y.Y.Y (Y.Y.Y.Y is destination IP add.)
[H3C-Tunnel0]keepalive 5 5
[H3C]public-key local create rsa (Generate RSA key to enable SSH server)
[H3C]public-key local create dsa (Generate DSA key to enable SSH server)
[H3C]ssh server enable (To enable SSH server)
[H3C]local-user test (To create New User with Password for SSH access)
[H3C-luser-test]password simple xyz or [H3C-luser-test]password cipher xyz
[H3C-luser-test]service-type ssh
[H3C-luser-test]authorization-attribute level 3
[H3C-luser-test]quit
[H3C] user-interface vty 0 4
[H3C-ui-vty0-4] authentication-mode scheme
[H3C-ui-vty0-4] protocol inbound ssh
[H3C-ui-vty0-4] quit
[H3C]ssh user test service-type stelnet authentication-type password
[H3C]dis public-key local rsa public (To view rsa public key)
[H3C]dis public-key local dsa public (To view dsa public key)
Link Aggregation:-