LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS - Cant Access Internet (https://www.linuxquestions.org/questions/linux-newbie-8/centos-cant-access-internet-4175473848/)

Arty Ziff 08-18-2013 09:30 PM

CentOS - Cant Access Internet
 
I just upgraded from 5.something to 6.4.

I can not access the Internet via a browser.

I was able to with previous version install.

I am connected to a DSL router.

Any suggestions?

smallpond 08-18-2013 09:40 PM

Open a terminal as root. What does 'ifconfig -a' show?

Arty Ziff 08-18-2013 11:05 PM

Quote:

Originally Posted by smallpond (Post 5011656)
Open a terminal as root. What does 'ifconfig -a' show?

[root@localhost ~]# ifconfig -a

eth0

Link encap:Ethernet HWaddr 00:19:D1:A8:25:F0
inet6 addr: fe80::219:d1ff:fea8:25f0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1170 (1.1 KiB) TX bytes:468 (468.0 b)
Interrupt:20 Memory:e0300000-e0320000

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:16436 Metric:1
RX packets:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2998 (2.9 KiB) TX bytes:2998 (2.9 KiB)

virbr0

Link encap:Ethernet HWaddr 52:54:00:F4:AF:39
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

virbr0-nic

Link encap:Ethernet HWaddr 52:54:00:F4:AF:39
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

SAbhi 08-19-2013 12:02 AM

Quote:

eth0

Link encap:Ethernet HWaddr 00:19:D1:A8:25:F0
inet6 addr: fe80::219:d1ff:fea8:25f0/64 Scope:Link


virbr0

Link encap:Ethernet HWaddr 52:54:00:F4:AF:39
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
can you share output from :
Code:

cat /etc/sysconfig/network-scripts/ifcfg-eth0  and ifcfg-virbr0.

also

service NetworkManager status


Arty Ziff 08-31-2013 05:11 PM

Sorry about the delay, I was out of town:

[localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=97257198-b746-4f80-8438-eeed9c728891
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=00:19:D1:A8:25:F0
PEERDNS=yes
PEERROUTES=yes

[localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-virbr0
cat: /etc/sysconfig/network-scripts/ifcfg-virbr0: No such file or directory

lleb 08-31-2013 05:39 PM

Quote:

Originally Posted by Arty Ziff (Post 5019538)
Sorry about the delay, I was out of town:

[localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=97257198-b746-4f80-8438-eeed9c728891
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=00:19:D1:A8:25:F0
PEERDNS=yes
PEERROUTES=yes

[localhost ~]$ cat /etc/sysconfig/network-scripts/ifcfg-virbr0
cat: /etc/sysconfig/network-scripts/ifcfg-virbr0: No such file or directory

there is your problem right there. change the onboot from no to yes, then as root run:

Code:

# service network restart
that should get you up and running provided you are in a DHCP LAN. for some reason the default for ethX in RHEL is now off. just make that adjustment and from now on as long as the cable and LAN are functioning including the DHCP server, you should be ok.

Arty Ziff 08-31-2013 06:00 PM

Solved...
 
Bingo.

lleb 08-31-2013 09:48 PM

glad that helped.


All times are GMT -5. The time now is 01:10 AM.