How to Setup networking on centos 7

Source: http://www.krizna.com/centos/setup-network-centos-7/ When installing Centos 7, You may not able to connect network in that machine. This will happen because Ethernet interfaces are not enabled by default and need additional configuration. Type “nmcli d” command in your terminal # nmcli d Recommended for beginners Step 1 » Type this command “nmtui” to open Network manager […]

Read More

Outbound Networking issues

Sometimes the resolvers in the server cannot find a server. You can update the DNS resolvers (/etc/resolv.conf) to rotate between a number of nameservers to try and resolve the issue. Add google nameservers to the mix with your Host resolvers. # nano /etc/redolv.conf nameserver 8.8.8.8 nameserver 69.xx.xx.xx nameserver 8.8.4.4 nameserver 69.xx.xx.xx

Read More

Change the gateway in CentoS

Edit the netowrk file # nano /etc/sysconfig/network You should see this: HOSTNAME=host.domain.com # ============================================================= # Network Script generated by BareMetal # ============================================================= NETWORKING=yes NETWORKING_IPV6=no GATEWAY=216.xx.xx.1 Change the Gateway and save then restart networking # service network restart

Read More

Changing the primary IP address of a CentOS Server

ssh to the server. #nano /etc/sysconfig/network-scripts/ifcfg-eth0 You will find… # ============================================================= # Network Interface Script generated by BareMetal # ============================================================= DEVICE=eth0 BOOTPROTO=STATIC ONBOOT=yes IPADDR=216.55.xx.xx NETMASK=255.255.255.0 HWADDR=6C:62:xx:xx:xx:C3 Change this line only to the new IP IPADDR=216.55.xx.xx Note: If you are changing to an IP on a different subnet and need to change your default gateway, this […]

Read More

CentOS IPv6 Network Configuration

You need to configure following files for IPv6 configuration: — /etc/sysconfig/network : Turn on networking in this file. — /etc/sysconfig/network-scripts/ifcfg-eth0 : Set default IPv6 router IP and server IP address in this file. Open /etc/sysconfig/network file: [root@austin log]# nano /etc/sysconfig/network Add to the following line: NETWORKING_IPV6=yes Open /etc/sysconfig/network-scripts/ifcfg-eth0 (1st network config file) [root@austin log]# nano […]

Read More