Problem setting up em1 on Dell Optiplex 9010

Issues related to configuring your network
Post Reply
ben_tvpp
Posts: 29
Joined: 2018/12/04 13:28:51

Problem setting up em1 on Dell Optiplex 9010

Post by ben_tvpp » 2018/12/04 17:04:33

I am new to CentOS but have set up various Linux systems, both servers and desktops, in the last 15 years.

I am trying to install CentOS 6.10 on a Dell Optiplex 9010, which has a Intel Gigabit 82579lm NIC. As when I first booted the lineDVD (to test it) networking did not seem to work I did a install from the liveDVD rather than a net install. I have removed NetworkManager as i am setting it up as a server and trying to work out how to set up the networking manually.

My ifcfg-em1 is:
DEVICE=em1
TYPE=ethernet
MM_COMTROLLED=no # not controled network manager
BOOTPROTO=static
IPADDR=192.168.0.5
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
NAMESERVER=8.8.8.8
And my resolve.conf is:
nameserver 8.8.8.8
I actually added this manually.

So I then started the network and had a look to see what was working:
root@localhost ~]# service network restart
Shutting down interface em1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface em1: Determining if ip address 192.168.0.5 is already in use for device em1...
[ OK ]
[root@localhost ~]# ifconfig
em1 Link encap:Ethernet HWaddr 90:B1:1C:98:D1:26
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:93 errors:944 dropped:0 overruns:0 frame:722
TX packets:110 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13767 (13.4 KiB) TX bytes:7148 (6.9 KiB)
Interrupt:20 Memory:f7c00000-f7c20000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10008 (9.7 KiB) TX bytes:10008 (9.7 KiB)

[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 em1
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 em1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 em1
[root@localhost ~]#
This all looks good but if I try to ping the router (192.168.0.1) or google.com it fails (the router comes up 'Destination host Unreachable' almost immediately and google.com hangs for a bit and then comes up host unknown.

Any ideas?

Ben

User avatar
TrevorH
Forum Moderator
Posts: 25576
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problem setting up em1 on Dell Optiplex 9010

Post by TrevorH » 2018/12/04 17:41:02

Not really the solution to your problem but why use CentOS 6? It's 8 years old and will die in less than 2 years time and already only receives critical security updates. CentOS 7 would be a better long term bet as it's "only" 4 years old and has another 6 years left.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

ben_tvpp
Posts: 29
Joined: 2018/12/04 13:28:51

Re: Problem setting up em1 on Dell Optiplex 9010

Post by ben_tvpp » 2018/12/04 17:42:56

Its supposed to mirror a production machine as much as possible as its being used for dev.

ben

Post Reply