Common distribution networking setup

From GigaTux Wiki
Revision as of 18:11, 6 February 2016 by Astropoint (talk | contribs) (Created page with "The IPs given here are samples, they will need to be updated depending on the server, but the other details should be valid ==Debian== /etc/network/interfaces iface eth0 i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The IPs given here are samples, they will need to be updated depending on the server, but the other details should be valid

Debian

/etc/network/interfaces

 iface eth0 inet static
   address 185.113.128.146
   netmask 255.255.254.0
   network 185.113.128.0
   broadcast 185.113.129.255
   gateway 185.113.128.1		
   dns-nameservers 78.110.174.195 78.157.192.227

Centos

/etc/sysconfig/network-scripts/ifcfg-eth0

 DEVICE=eth0
 BOOTPROTO=static
 BROADCAST=185.113.129.255
 IPADDR=185.113.129.35
 NETMASK=255.255.254.0
 NETWORK=185.113.128.0
 ONBOOT=yes

/etc/sysconfig/network

 NETWORKING=yes
 HOSTNAME=centos6
 GATEWAY=185.113.128.1