Some parameters about the Cisco router configuration

Source: Internet
Author: User

Single-Arm routing settings

Switch (config-if) #no Switchport

Switch (config) #ip routing
Switch (config) #interface FASTETHERNET0/1
Switch (config-if) #switchport trunk Encapsulation dot1q
Switch (config-if) #exit
Switch (config) #interface VLAN 2
Switch (config-if) #ip address 192.168.2.1 255.255.255.0
Switch (config-if) #exit
Switch (config) #interface VLAN 3

Layer three switch settings

S3 (config) #ip routing to turn on the routing function
S3 (config) #int FA0/5
S3 (Config-if) #no switchport The port enables three-tier routing capability
S3 (Config-if) #ip address 192.168.5.1 255.255.255.0 Configure IP Address
S3 (Config-if) #no shutdown Open port


S2 (config-if) switchport trunk Encapsulation dot1q

S2 (config) #interface VLAN????????????? Enter VLAN 10 interface configuration mode
S2 (config-if) #ip address 192.168.1.254 255.255.255.0

Single 3-layer switch configuration does not partition VLANs

Switch (config) #ip routing

Switch (config) #interface FASTETHERNET0/1
Switch (config-if) #no Switchport
Switch (config-if) #ip address 192.168.3.1 255.255.255.0


Single-line VLAN configuration
Router (config-if) #interface gigabitethernet0/0.1
Router (config-subif) #encapsulation dot1q 2
Router (config-subif) #ip address 192.168.1.1 255.255.255.0


Dhcp

Wanglei (config) #ip DHCP excluded-address 192.168.1.1
Wanglei (config) #ip DHCP pool dhcppool1
Wanglei (dhcp-config) #network 192.168.1.0 255.255.255.0
Wanglei (dhcp-config) #default-router 192.168.1.1
Wanglei (dhcp-config) #dns-server 192.168.1.1
Wanglei (dhcp-config) #dns-server 61.128.114.133

Static NAT
Router (config) #ip nat inside source static 192.168.1.2 192.168.2.3
Router (config) #ip nat inside source static 192.168.1.3 192.168.2.4

Show ip NAT Translations

Router (config) #ip nat pool AAA 192.168.2.20 192.168.2.30 netmask 255.255.255.0
Router (config) #ip nat inside source List 1 pool AAA

Router (config) #access-list 1 Permit 192.168.1.0 255.255.255.0
Router (config) #show IP NAT Translations

Debug IP NAT

Internal 10.1.1.3 Conversion 170.168.2.2

Overload
Router (config) #ip nat pool AAA 192.168.2.1 192.168.2.1 netmask 255.255.255.0
Router (config) #ip nat inside source List 1 Pool AAA overload
Router (config) #access-list 1 Permit 192.168.1.0 0.0.0.255
Router (config) #exit

Do not reload

Router (config) #ip nat pool AAA 192.168.2.5 192.168.2.15 netmask 255.255.255.0
Router (config) #ip nat inside source List 1 pool AAA
Router (config) #access-list 1 Permit 192.168.1.0 0.0.0.255

Some parameters about the Cisco router configuration

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.