Advertisement
marioulli

How do i Configure Static IP Address Internet Protocol (IPv4

Jan 23rd, 2019
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. ## How do i Configure Static IP Address Internet Protocol (IPv4)
  2.  
  3. To configure static IP Address, you need to update or edit network configuration file to assign an Static IP Address to a system. You must be superuser with su (switch user) command from terminal or command prompt.
  4.  
  5. For Ubuntu/Debian/Linux Mint
  6. Assign Static IP Address to eth0 interface editing configuration file /etc/network/interfaces to make permanent changes as shown below.
  7.  
  8. auto eth0
  9. iface eth0 inet static
  10. address 192.168.50.2
  11. netmask 255.255.255.0
  12. gateway 192.168.50.1
  13. Next, restart network services after entering all the details using the following command.
  14.  
  15. # /etc/init.d/networking restart
  16. $ sudo /etc/init.d/networking restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement