To change the IP address of a network device in linux can use terminal or GUI. here change by using the terminal mode with the help of few commands .
To reach the command terminal follow instructions -
-> Goes to Applications ---> Accessories ---> Terminal.
-> To check the IP address enter command
ifconfig eth0 <press enter>.
-> Now to change the IP address enter command
ifconfig eth0 <type ip address> netmask <type network mass> up <press enter>
ex.
To reach the command terminal follow instructions -
-> Goes to Applications ---> Accessories ---> Terminal.
-> To check the IP address enter command
ifconfig eth0 <press enter>.
-> Now to change the IP address enter command
ifconfig eth0 <type ip address> netmask <type network mass> up <press enter>
ex.
ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
by this command change the ip address of eth0 port . we can check , apply the command -
ifconfig eth0
by this command change the ip address of eth0 port . we can check , apply the command -
ifconfig eth0
For Further Reading,
0 comments:
Post a Comment