Cisco basic Configuration Script command

Source: Internet
Author: User

Start

Enable privilege mode

Configure Terminal Global mode

Interface into interface mode {E,gi,ti}

Hostname Change host name

Line console 0 set a privileged password

Enable secret set into global mode password

Line vty 0? <1-15> last line number remote port open several

(config-line) #password remote password

(config-line) #login run

IP default-gateway Default Gateway

IP address 192.168.1.11 255.255.255.0 IP addresses followed by masks

No shutdown Open

VLAN partitioning

VLAN 2 Set VLAN

VLAN 3

(Config-vlan) #name 002 Change VLAN Name

(config-if) #switchport access VLAN 2 to place the interface in VLAN 2

(config-if) #switchport mode trunk to set the interface as a relay port

Single-arm routing

Router (config) #inter fa0/0

Router (config-if) #no shut

Router (config-if) #inter fa0/0.1

Router (config-subif) #encapsulation dot1q 1 package

Router (config-subif) #ip address 192.168.0.1 255.255.255.0

Nat

Static:

IP nat inside source static private + public

IP NAT inside Import

IP Nat outside exit

Dynamic:

IP NAT Pool Test 202.106.1.5 202.106.1.6 netmask 255.255.255.252

Address pool behind and mask

Access-list 1 Permit 192.168.0.0 0.0.255.255 list is followed by a rule counter mask.

IP nat inside source list 1 pool test associated

PAT:

IP nat inside source List 1 interface FA0/1 overload no longer meant to be used

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.