Configuring TCPIP Options

Configuring TCP/IP Options

Giving the switch an IP address is one of the first things that should be done. The command used to do so is ip address {ip address} {subnet mask} . The default gateway should also be specified by using the ip default-gateway {ip address} command. The following is an example:

 
 ip address 192.168.1.10 255.255.255.0 ip default-gateway 192.168.1.1 

You may also need to configure a domain name for the switch and tell it how to resolve names by giving it a name-server address, as shown in the following:

 
 ip domain-name cisco.com ip name-server 192.168.1.20 

Now, we can view the TCP/IP information by using the show ip command:

 
 hostname# show ip IP Address:192.168.1.10 Subnet Mask:255.255.255.0 Default Gateway:192.168.1.1 Management VLAN: 1 Domain name: cisco.com Name server 1:192.168.1.20 Name server 2:198.92.30.32 HTTP server :Enabled HTTP port : 80 RIP :Enabled 

In the previous code, you will see various components of a TCP/IP configured device with all the relevant information such as the address, subnet mask, gateway, and also that there is a Web server configured for port 80.



CCNA Exam Cram[tm] 2 (Exams 640-821, 640-811, 640-801)
CCNA Exam Cram[tm] 2 (Exams 640-821, 640-811, 640-801)
ISBN: 789730197
EAN: N/A
Year: 2005
Pages: 155

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net