Use the syntax:
route add xxx.xxx.xxx.xxx mask xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
meaning:
route add (destination address) mask (subnet mask) (gateway)
For example, if you are on the 192.168.1.0 network with a gateway of 192.168.1.1 that is configured to access the 10.10.10.0/24 network, your statement would look like this:
route add 10.10.10.0 mask 255.255.255.0 192.168.1.1
Note: you need to add the "-p" switch to the statement in order for the route to stay after reboot. (route -p add 10.10.10.0 mask 255.255.255.0 192.168.1.1)
CLI stands for Command line interface. It is where we configure our routers or switches.
From a command prompt, you can use the command "ipconfig" to display your ip address.
From the output of the "show ip interface brief" command, you can see the IP address, interface status (up or down), protocol status (up or down), and the method for obtaining the address (manual or dynamic) for each interface on the device.
In networking every system has a associated address to be identified in the network. The address associated with the system in network is called IP address . you can get your unique address by using PING command in command prompt or can check it online as well.
There are commands in command line interface for this . To know the ip address of host you can use Ipconfig command . Ipconfig command will also gives your other details as well.
Below are two different methods of how this can be done at the command line. ifconfig eth0 downRunning the above command would take the eth0 interface (the first network card) down. Which is the same as releasing the IP address from that network card.ifconfig eth0 upAfter the interface is taken down, typing in the above command would bring that interface back up.ordhclient eth0Renews the IP address assigned to it by DHCP.
In Linux, you can configure a network card (it;s IP address, and if it is turned on or off) with the 'ifconfig' command.
Passive-interface command is used in all routing protocols to disable sending updates out from a specific interface.
Differentiate between Command line interface and Menus interface and example of each interaction style
Graphical User Interface
set the IP address with the ifconfig command use the syntax: ifconfig interface address netmask up view your network interfaces with the command ifconfig then for example to set address to 172.12.0.1 on the interface eth0 use: ifconfig eth0 172.12.0.1 netmask 255.255.0.0 up make sure you have root permissions to do this, either be logged in as root or preceed the command with "sudo". you don't have to specify the subnet mask if you don't want to, but it is generally recommended to do so.
ALSwitch(config)# interface vlan1 ALSwitch(config-if)# ip address 192.168.10.2 255.255.255.0