Cisco Router basic Configuration command

Source: Internet
Author: User
Tags config stub

One

1.router (config) #router rip start RIP process

2.router (conifg-router) #network 172.17.0.0 The primary network that specifies the RIP protocol

3.router (config-router) #passive-interface F0/1 to configure F0/1 as passive port

4.router (config-router) #neighbor 172.17.12.67 Unicast notification of RIP updates to routers

5.router (config-if) #ip address 192.168.83.244 255.255.255.0 Primary IP addresses

Router (config-if) #ip address 10.33.55.1 255.255.255.0 secondary secondary IP addresses

Two

1.router (Config-router) #version 2 to configure RIP as version 2

2.router (CONFIG-IP) #ip RIP send version 1 only RIP 1 packets

Router (CONFIG-IP) #ip RIP receive version 2 only receives RIP 2 packets

3.router (config-router) #no auto-summary closing summary function

4.router (config-if) #no IP split-horizon off Horizontal segmentation

5.router#show IP OSPF database router 192.168.30.10 display Router LSA notification

Router#show IP OSPF database network 192.168.17.18 Display Network LSA notification

Router#show IP OSPF Database summary 172.16.121.0 Display Network Rollup LSA notification

Router#show IP OSPF database asbr-summary display ASBR Rollup LSA notification

Router#show IP OSPF database external 10.83.10.0 Display Autonomous System external LSA notification

Router#show IP OSPF database nssa-external display NSSA external LSA notification

Three

1.router (config) #router OSPF 10 configuration OSPF process ID

2.router (config) #interface loopback0

Router (config-if) #ip address 192.168.10.1 255.255.255.0 configuration Loopback0 interface

3.router (Config-router) #area 1 stub configuration stub area

4.router (Config-router) #area 1 stub no-summary configuration totally stubby zone

5.router (config-router) #area 1 nssa configuration Nssa Area

6.router (config-router) #area range 172.16.0.0 255.240.0.0 configuration address Rollup

7.router (config-router) #area virtual-link 192.168.100.33 configuration Virtual link

Four

1.router (config) #standby 172 IP 172.16.10.254 Join backup Group 172 specify virtual IP address

2.router (CONFIG-IF) #standby Priority 150 Configuration HSRP Priority 150

3.router (config-if) #standby the preemptive right of preempt configuration HSRP

4.router (config-if) #standby 2 9 2 indicates hello time, 9 means to hold time

5.router (config) #interface S0

6.router (config-if) #standby track S0 100 Configure the trace port S0 and reduce the port down by 100

7.router#show Standby Brief View the status of HSRP

8.router#no debuge all Turn off debugging features

Five

1.router (config-if) #ip access-group 1 in Access list

Router (config-if) #ip Access-group 1 out access list

2.router (config) #access-list 1 premit 192.168.10.0 0.0.0.255 allow 192.168.10.0 network segment to pass

Router (config) #access-list 1 deny 192.168.10.0 2.0.0.255 deny 192.168.10.2 host through

3.router (config) #access-list 1 Premit any; 0.0.0.0 255.255.255.255

Router (config) #access-list 1 Premit host 172.30.16.29, host 0.0.0.0

4.router (config) #access-list deny TCP 172.16.4.0 0.0.0.255 172.16.3.0 0.0.0.255 eq 21 denial of FTP traffic from 172.16.4.0 to 172.16.3.0

5.router (config) #ip Access-list extended Cisco to create 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.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.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.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.255.0

3. Define internal network allow access to external network

Router (config) #access-list 1 Permit 192.168.100.0 0.0.0.255

4. Define a legitimate IP address pool

Router (config) #ip Nat pool Chen 61.159.62.129 61.159.62.190 netmask 255.255.255.248

5. Implement 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

VIII. Configuration of Pat

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.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.255.0

3. Define internal network allow access to external network

Router (config) #access-list 1 Permit 192.168.100.0 0.0.0.255

4. Define a legitimate IP address pool

Router (config) #ip Nat pool Chen 61.159.62.129 61.159.62.190 netmask 255.255.255.248

5. Implement multiplexing IP address translation

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

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.