Common Router Configuration Commands collection

Source: Internet
Author: User

1, access to privileged mode, global configuration mode, interface configuration mode, virtual terminal configuration mode, RIP routing protocol configuration mode

Router > Enable

Password:

Router #

Router # Configure Terminal

Router (config) #

Router (config) # int F0/12

Router (config-if) #

Router (config) # line vty 0 15

Router (config-line) #

Router (config) # Router RIP

Router (Config-router) #

2. Configure Remote login Password

Router (config) # line vty 0 15

Router (config-line) # password 7 Isncgyx

3. Copy configuration file to tftp Server

Router # Write Network

4. Copy Running-config to TFTP Server

Router # copy Running-config tftp:

5, copy the configuration file in Bootflash to the TFTP Server

Router # Copy Bootflash:tftp:

6, from the TFTP Server copy configuration file to the router

Router # Copy Tftp:running-config

7, copy the configuration file on the TFTP Server to Bootflash

Router # Copy Tftp:bootflash:

8, configure the router's host name

Router (config) #hostname ROUTER-ISNC

9, configure the root user password

Router (config) # enable secret Isncgyx

10, set the system clock

Router # Calendar Set 11:30:00 October 2011

11, Save the configuration

Router # Write memory

Router # Write Network tftp

12, delete the configuration

Router # Write Erase

13, Basic Detection command (telnet, ping, trace)

Router > Telnet paris/221.4.8.1

Router > Ping 192.168.201.64

Router > Trace 210.38.160.5

Router > Traceroute www.yourtion.com

14, see Flash, System clock, software and hardware version, router configuration, view the routing table, IP routing protocol details

Router > Show Flash

Router > SH Clock

Router > SH version

Router # SH Configuration

Router # SH IP route

Router # SH IP protocols

15. Configure Interface Description Information

Router (config-if) # description to-jiaying University

16. Configure interface Bandwidth

Router (config-if) # bandwidth 2500,000

17, configure the interface IP address

Router (config-if) # IP address 202.112.7.249 255.255.255.252

18, the opening and closing of the interface

Router (config-if) # shutdown/no shutdown

19. Do not act as ARP agent

Router (config-if) # Duplex ful

l# no IP directed-broadcast

# no IP proxy-arp

20. Configure Asynchronous Serial Interface

Router (config) # interface A1

Router (config-if) # IP unnumbered ethernet0

Router (CONFIG-IF) # Encapsulation PPP

Router (config-if) # async Default IP address 202.112.7.129

Router (config-if) # async Dynamic Routing

Router (config-if) # async Mode Interactive

Router (config-if) # no shutdown

Router (config-if) # exit

Router (config) # exit

Router (config) #

21. Configure High speed Synchronous serial interface

Router (config) # interface S1/1

Router (config-if) # description To-shenzhen

Router (config-if) # bandwidth 2048

Router (config-if) # IP address 212.112.41.81 255.255.255.252

Router (config-if) # encapsulation HDLC

Router (config-if) # no IP directed-broadcast

Router (config-if) # no IP proxy-arp

22. Configure POS Interface

Router (config) # interface pos3/0

Router (config-if) # Description to Tianjingdaxue

Router (config-if) # bandwidth 2500,000

Router (config-if) # IP address 212.12.37.18 255.255.255.252

Router (CONFIG-IF) # CRC 32

Router (config-if) # pos Framing SDH

Router (config-if) # no IP directed-broadcast

Router (config-if) # POS flag S1 S0 2

23, the Loopback interface configuration

Router (config) # int loopback 0

Router (config-if) # IP address 192.167.167.9 255.255.255.255

Router (config-if) # no IP route-cache

Router (config-if) # no IP mroute-cache

24. Configure Static routing

Router (config) # ip route 192.65.96.0 255.255.240.0 222.112.37.1 (configuration of static routes)

25, into the RIP configuration mode

Router (config) # Router RIP

26. Set up the network address to participate in RIP protocol

Router (config-router) # network 159.105.0.0

27. Configure the passive interface of RIP

Router (config-router) # Passive-interface Ethernet 0

28, configure the RIP routing filter

Router (config) # access-list deny any

Router (config) # Router RIP

Router (config-router) # distribute-list in Ethernet0

29, configure the management distance RIP

Router (config-router) # Distance 50

30, configure the RIP neighbor router

Router (config-router) # neighbor 202.112.7.2

31. Configure a single IP address to participate in OSPF

Router (config) # Router OSPF 63

Router (config-router) # network 131.107.25.1 0.0.0.0 area 0

32, network address participation in OSPF

Router (config-router) # network 133.181.0.0 0.0.255.255 Area 0

33. Define subnet addresses to participate in OSPF

Router (config-router) # Area 0 Range 212.37.123.0 255.255.255.0

34, configure the passive interface (including routers and the configuration of the third tier switch)

Router (config-router) # passive-interface Ethernet 0

Router (config-router) # Passive-interface Vlan37

35. Configure Routing Filtering

Router (config) # access-list deny any

Router (config) # Router OSPF 63

Router (config-router) # Distribute-list in serial 0

36, configuration management distance

Router (config-router) # distance 10

37. Configure the cost value of OSPF to introduce external routes

Router (config-router) # Redistribute metric 100

38. Configure the default tag value when introducing external routes

Router (config-router) # Redistribute Tag 10

39. Configure the default external route type when importing external routes

Router (config-router) # Redistribute connected Metric-type 1 subnets

40, configure the name of the IP address pool

Router (config) # ip dhcp pool ttt/234

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.