How do you set the IP address for the ethernet port of a router?
Following are the steps needed for setting the port address for the ethernet port of a router.
- First go into global configuration mode
# conf t
(config)# - Now go into interface configuration mode for the port whose address you want to set as follows ...
(config)# interface ethernet 0
(config-if)# - Here give the command to allocate an address 192.168.0.1 and a subnet mask 255.255.255.0 as follows ...
(config-if)# ip address 192.168.0.1 255.255.255.0
(config-if)#no shutdown
(config-if)#^Z
Now if you give the command show running-config from the previledged mode, you can see that the ethernet 0 interface has been allocated the said ip address. And the no shutdown command says that the ethernet 0 interface has to be turned up.

0 Comments:
Post a Comment
<< Home