Cisco devices; static routing; DHCP basic configuration

Source: Internet
Author: User

Static routing configuration:


Configuration ideas and steps:

1, configure the host PC-1 IP address and gateway IP address;

2, configure the router R1 IP address of the interconnection port;


3, configure the host PC-2 IP address and gateway IP address;


4, configure the router R2 IP address of the interconnection port;

5, in the R1 configuration to go to the 192.168.20.0/24 route;

R1 (config) # ip route 192.168.20.0 255.255.255.0 192.168.12.2

6, in the R2 configuration to go to the 192.168.10.0/24 route;

R2 (config) # ip route 192.168.10.0 255.255.255.0 192.168.12.1

7. Verification and testing:

Routing entry validation,

R1#show IP route//view R1 's routing table;

R2#show IP route//view R2 's routing table;

PC-1 and PC-2 between each other ping pass test;

Pc-1> Ping 192.168.20.1

Pc-2> Ping 192.168.10.1

Experimental Results: The terminal hosts ping each other;



-----------------------------------------------------------------------------------------------

DHCP Configuration experiment:

Router as a DHCP server:

1. Configure Router Address:

Router (config) #hostname GateWay

GateWay (config) #interface gi0/0

GateWay (config-if) # no shutdown

GateWay (config-if) # IP address 192.168.1.1 255.255.255.0

4. Configure the DHCP client:

Click-"DHCP";

5. Verify the command:

On the server side of the authentication command:

gateway# show ip DHCP binding


gateway# Show Running-config

Validation on the client:

Run-to-cmd---> Ipconfig/all




---------------------------------------------------------

Switch as the DHCP server:

1, configure the IP address of the switch;

Switch (config) # interface VLAN 1

Switch (config-if) # no shutdown

Switch (config-if) # IP address 192.168.1.250 255.255.255.0

2. Start the DHCP service:

Switch (config) # service DHCP

3. Configure the Exclude address for DHCP:

Switch (config) # ip dhcp excluded-address 192.168.1.1 192.168.1.99

4. Configure the DHCP address pool:

Switch (config) # ip dhcp pool CCNP

Switch (dhcp-config) # network 192.168.1.0 255.255.255.0

Switch (dhcp-config) # Default-router 192.168.1.1

Switch (dhcp-config) # Dns-server 8.8.6.6

5, configure the DHCP client;

6. Verification:

Switch#show IP Interface Brief//view switch interface IP address configuration;

Switch#show running-config//view DHCP-related configuration commands;

Switch#show IP DHCP binding//view DHCP server assigning a successful IP address

On the PC:

Ipconfig/all//View auto-acquired IP address on the PC's command line



















Cisco devices; static routing; DHCP basic 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.