IP configuration (ip config) is a command-line tool used in networking to display and manage the internet Protocol (IP) settings of a computer or device. It provides information such as the device's IP address, subnet mask, default gateway, and DNS servers. This tool is essential for troubleshooting network connectivity issues and ensuring proper network configuration. In Windows, it can be accessed via the Command Prompt, while in Unix/Linux systems, similar functionality can be found using commands like ifconfig
or ip
.
R3#configure terminalR3(config)#access-list 104 permit ip 10.0.0.128 0.0.0.127 anyR3(config)#ip nat inside source list 104 interface Serial0/0/0 overloadR3(config)#interface fastEthernet0/1R3(config-if)#ip access-group 104 inR3(config-if)#ip nat insideR3(config-if)#exitR3(config)#interface Serial0/0/0R3(config-if)#ip nat outsideR3(config-if)#exitR3(config)#interface Serial0/0/1R3(config-if)#ip nat outsideR3(config-if)#endWriting by vanhuuvt32bonphuonglanha@gmail.com
Router(config)# hostname AdminAdmin(config)# enable secret cangetinAdmin(config)# interface fa0/1Admin(config-if)#ip address 192.168.1.22 255.255.255.248Router(config)# hostname AdminAdmin(config)# enable password cangetinAdmin(config)# interface fa0/1Admin(config-if)# ip address 192.168.1.22 255.255.255.248Router(config)# hostname AdminAdmin(config)# enable secret cangetinAdmin(config)# interface fa0/0Admin(config-if)# ip address 192.168.1.22 255.255.255.248Router(config)# hostname AdminAdmin(config)# enable password cangetinAdmin(config)# interface fa0/0Admin(config-if)# ip address 192.168.1.22 255.255.255.248
You can't assign an ip to a switch but you can add one to the interfaces......... like: for the management vlan (or any other vlan) Switch(config)#int vlan 1 Switch(config-if)#ip address {your ip address} {mask} Switch(config-if)#no shutdown any other port Switch(config)#int <fa, G, S> <interface number i.e. 0/0> Switch(config-if)#ip address {your ip address} {mask} Switch(config-if)#no shutdown and for a default gateway Switch#conf t Switch(config)#ip default-gateway {ip address}
router (config)# ip dhcp servicerouter (dhcp-config)# ip dhcp pool router (dhcp-config)# network
Router(config-if)#
Switch(config)# ip default-gateway 192.168.1.254Switch(config)# interface vlan 1Switch(config-if)# ip address 192.168.1.1 255.255.255.0Switch(config-if)# interface fa0/1Switch(config-if)# switchport access vlan 1
ALSwitch(config)# interface vlan1 ALSwitch(config-if)# ip address 192.168.10.2 255.255.255.0
You go to command and type in ip config you should see everything to do with your ip there
Router> enableRouter# config tRouter(config)# ip default route [IP address]
go to Start than click run than type command.com or cmd.than type config or config /all
It cancels only configurations settings, such as securuty, DHCP ip range, static ip settings and so on...
I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#I will show the commands, together with the prompt, assuming the router name has not been changed. A subnet mask is also required; I will provide one. ^Z is Control-Z, used to exit configuration mode quickly: Router>enable Router#configure terminal Router(config)#interface E0 Router(config-if)#ip address 192.168.1.1 255.255.255.0 Router(config-if)#^Z Router#