For temporary network configuration you have to use 'ifconfig' command. This command configures the setting immediately and will b lost after a reboot.
$ sudo ifconfig eth0 192.168.1.2 netmask 255.255.255.0
Here we are configuring to eth0. After this command to check the present network interface you have to type the command
$ ifconfig eth0
Then will give the details of the eth0 ( example is show figure below)
$ sudo ifconfig eth0 192.168.1.2 netmask 255.255.255.0
Here we are configuring to eth0. After this command to check the present network interface you have to type the command
$ ifconfig eth0
Then will give the details of the eth0 ( example is show figure below)

No comments:
Post a Comment