LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   network problem (https://www.linuxquestions.org/questions/linux-newbie-8/network-problem-4175411166/)

windstory 06-13-2012 03:15 AM

network problem
 
3 Attachment(s)
My box is scinetific linux 6.2 x64 as guest on virtualbox.

The network icon on system tray is blue - which means works, but I could not connect internet and make ping to gateway.

And I can see "ifcfg-Auto_eth0" at "/etc/sysconfig/network-scripts", but there is "eth0" at "service network restart".


The file "ifcfg-Auto_eth0" at "/etc/sysconfig/network-scripts" is

Code:

TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="Auto eth0"
UUID=0122de11-c786-4fc6-8ef4-92bf654488df
ONBOOT=yes
IPADDR=192.168.0.4
PREFIX=24
GATEWAY=192.168.0.1
DNS1=8.8.8.8
HWADDR=08:00:27:32:0F:09

And the file "ifcfg-eth0" at *"/etc/sysconfig/networking/devices" is

Code:

TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.0.4
PREFIX=24
GATEWAY=192.168.0.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="eth0"
UUID=d279b508-fa23-4f9f-81c8-d98ae0875eab
ONBOOT=yes
HWADDR=08:00:27:AE:64:B2
DNS2=168.126.63.2
DNS1=168.126.63.1
DEVICE=eth0
USERCTL=yes

And the result of "service network restart" is

Quote:

[root@linux Documents]# service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface Auto_eth0: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/17
[ OK ]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
And I disables firewall and selinux.

Please let me know hot to make internet work.

Thanks in advance.

amani 06-13-2012 08:04 PM

ifconfig -a

ifstat

post output

windstory 06-13-2012 09:17 PM

amani/

The results of two commands are here.


Quote:

[root@linux Documents]# ifconfig -a
eth4 Link encap:Ethernet HWaddr 08:00:27:32:0F:09
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe32:f09/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:233 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:726 (726.0 b) TX bytes:93827 (91.6 KiB)

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:114 errors:0 dropped:0 overruns:0 frame:0
TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8405 (8.2 KiB) TX bytes:8405 (8.2 KiB)

[root@linux Documents]# ifstat
bash: ifstat: command not found


All times are GMT -5. The time now is 07:24 AM.