Cisco router basic configuration command

Source: Internet
Author: User

I,
1. router (config) # router rip starts the rip Process
2. router (conifg-router) # network 172.17.0.0 specifies the master network of the rip Protocol
3. router (config-router) # passive-interface f0/1 configure f0/1 to passive Port
4. router (config-router) # neighbor 172.17.12.67 notify the router of rip update in a single wave
5. router (config-if) # ip address 192.168.83.244 255.255.255.0 primary ip address
Router (config-if) # ip address 10.33.55.1 255.255.255.0 secondary ip address
II,
1. router (config-router) # version 2: Configure rip to version 2.
2. router (config-ip) # ip rip send version 1 only sends rip 1 packets
Router (config-ip) # ip rip receive version 2 only receives rip 2 packets
3. router (config-router) # no auto-summary disable the summary Function
4. router (config-if) # no ip split-horizon disable horizontal segmentation
5. router # show ip ospf database router 192.168.30.10 display vrollsa announcement
Router # show ip ospf database network 192.168.17.18 show network LSA announcement
Router # show ip ospf database summary 172.16.121.0 display network summary LSA announcement
Router # show ip ospf database asbr-summary Display ASBR summary LSA announcement
Router # show ip ospf database external 10.83.10.0 displays the external LSA announcement of the Autonomous System
Router # show ip ospf database nssa-external show NSSA external LSA announcement
III,
1. router (config) # configure the ospf process id for router ospf 10
2. router (config) # interface loopback0
Router (config-if) # ip address 192.168.10.1 255.255.255.0 configure loopback0 Interface
3. router (config-router) # area 1 stub configure the stub area
4. router (config-router) # area 1 stub no-summary configure totally stubby Region
5. router (config-router) # area 1 nssa configuration nssa Region
6. router (config-router) # area 25 range 172.16.0.0 255.240.0.0 configuration address Summary
7. router (config-router) # area 100 virtual-link 192.168.100.33 configure virtual links
IV,
1. router (config) # standby 172 ip 172.16.10.254 add to backup group 172 specify virtual IP Address
2. router (config-if) # standby 47 priority 150 configure HSRP priority 150
3. router (config-if) # standby 47 preempt configure the authorization of HSRP
4. router (config-if) # standby 47 ip time 2 9 2 represents the HELLO time, 9 represents the retention time
5. router (config) # interface s0
6. router (config-if) # standby 47 track s0 100 configure tracking port s0 and reduce port down by 100
7. router # show standby brief view the HSRP status
8. router # no debuge all disable debugging
V,
1. router (config-if) # Inbound ip access-group 1 in access list
Router (config-if) # output of ip access-group 1 out access list
2. router (config) # access-list 1 premit 192.168.10.0 0.0.255 allow the network segment of 192.168.10.0 to pass through
Router (config) # access-list 1 deny 192.168.10.0 2.0.0.255 reject host access through 192.168.10.2
3. router (config) # access-list 1 premit any; any indicates 0.0.0.0 255.255.255.255
Router (config) # access-list 1 premit host 172.30.16.29; host indicates 0.0.0.0
4. router (config) # access-list 101 deny tcp 172.16.4.0 0.0.0.255 172.16.3.0 0.0.255 eq 21 reject FTP traffic from 172.16.4.0 to 172.16.3.0
5. router (config) # ip access-list extended cisco creates a named access control list named cisco
Vi. Static address translation
1. Configure the IP address of the external Port
Router (config) # interface s0
Router (config-if) # ip address 61.159.62.129 255.255.255.255.248
2. Configure the IP address of the internal port
Router (config) # interface e0
Router (config-if) # ip address 192.168.100.1 255.255.0
3. Static address translation
Router (config) # ip nat inside source static 192.168.100.2 61.159.62.130
4. Enable NAT on internal and external ports
Router (config) # interafce s0
Router (config-if) # ip nat outside
Router (config) # interafce e0
Router (config-if) # ip nat inside
VII. Dynamic NAT configuration
1. Configure the IP address of the external Port
Router (config) # interface s0
Router (config-if) # ip address 61.159.62.129 255.255.255.255.248
2. Configure the IP address of the internal port
Router (config) # interface e0
Router (config-if) # ip address 192.168.100.1 255.255.0
3. Define the internal network to allow access to the external network
Router (config) # access-list 1 permit 192.168.100.0 0.0.255
4. Define a valid IP address pool
Router (config) # ip nat pool chen 61.159.62.129 61.159.62.190 netmask 255.255.255.248
5. Network Address Translation
Router (config) # ip nat inside source list 1 pool chen
6. Enable NAT on internal and external ports
Router (config) # interafce s0
Router (config-if) # ip nat outside
Router (config) # interafce e0
Router (config-if) # ip nat inside
8. PAT Configuration
1. Configure the IP address of the external Port
Router (config) # interface s0
Router (config-if) # ip address 61.159.62.129 255.255.255.255.248
2. Configure the IP address of the internal port
Router (config) # interface e0
Router (config-if) # ip address 192.168.100.1 255.255.0
3. Define the internal network to allow access to the external network
Router (config) # access-list 1 permit 192.168.100.0 0.0.255
4. Define a valid IP address pool
Router (config) # ip nat pool chen 61.159.62.129 61.159.62.190 netmask 255.255.255.248
5. Implement conversion of Reusable IP addresses
Router (config) # ip nat inside source list 1 pool chen overload
6. Enable NAT on internal and external ports
Router (config) # interafce s0
Router (config-if) # ip nat outside
Router (config) # interafce e0
Router (config-if) # ip nat inside


Author's "network collection notes"

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.