Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
03-16-2012, 02:22 AM
#16
Member
Registered: Nov 2008
Posts: 489
Original Poster
Rep:
smilemukul/ After failure of 1st tip, I followed send tip, but same result.
And I disabled iptables.
This is "/etc/sysconfig/network-scripts/ifcfg-eth0"
Quote:
DEVICE=eth0
BOOTPROTO=none
IPADDR=192.168.0.4
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
HWADDR=08:00:27:d3:08:db
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no
And the result of "ifconfig eth0".
Quote:
[root@localhost Documents]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27 3:08 B
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed3:8db/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:6666 (6.5 KiB)
"192.168.0.102" is from the result of dhcp ip address which is from 1st tip. And it's from Linux.
03-16-2012, 02:33 AM
#17
Member
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292
Rep:
If you are following my 2nd tip i.e, dhcp then why are you assigning the ip details in "/etc/sysconfig/network-scripts/ifcfg-eth0", remove the ip details from the config file as,
IPADDR=192.168.0.4
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
& edit BOOTPROTO=dhcp. I hope you had not check my steps what I had mentioned.
1 members found this post helpful.
03-16-2012, 02:57 AM
#18
Member
Registered: Nov 2008
Posts: 489
Original Poster
Rep:
smilemukul/ After failure of 1st tip, I've followed 2nd tip. And disabled iptables.
1. /etc/sysconfig/network-scripts/ifcfg-eth0
Quote:
DEVICE=eth0
BOOTPROTO=none
IPADDR=192.168.0.4
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
HWADDR=08:00:27:d3:08:db
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no
2. the result of "ifconfig eth0".
Quote:
[root@localhost Documents]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 08:00:27 3:08 B
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed3:8db/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:16714 (16.3 KiB)
3. The ip "192.168.0.102" is from 1st tip's setting. And the ping command is execuded at Linux.
03-16-2012, 03:04 AM
#19
Member
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292
Rep:
/etc/sysconfig/network-scripts/ifcfg-eth0 is same as previous, you have to delete the ip details entries from the config file & add BOOTPROTO=dhcp
1 members found this post helpful.
03-16-2012, 03:09 AM
#20
Member
Registered: Nov 2008
Posts: 489
Original Poster
Rep:
smilemukul/
I changed "/etc/sysconfig/network-scripts/ifcfg-eth0".
Quote:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=08:00:27:d3:08:db
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no
And "service network restart", and execute ping.
Quote:
[root@localhost Documents]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.102 icmp_seq=2 Destination Host Unreachable
From 192.168.0.102 icmp_seq=3 Destination Host Unreachable
From 192.168.0.102 icmp_seq=4 Destination Host Unreachable
03-16-2012, 03:49 AM
#21
Member
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292
Rep:
try to release the ip address through,
service network restart
dhcp -r
dhclient
1 members found this post helpful.
03-16-2012, 04:27 AM
#22
Member
Registered: Nov 2008
Posts: 489
Original Poster
Rep:
smilemukul/ At this time eth0 is not connect with network.
Quote:
[root@localhost Documents]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27 3:08 B
inet6 addr: fe80::a00:27ff:fed3:8db/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:3888 (3.7 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:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3080 (3.0 KiB) TX bytes:3080 (3.0 KiB)
[root@localhost Documents]# service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
03-21-2012, 02:48 AM
#23
Member
Registered: Nov 2008
Posts: 489
Original Poster
Rep:
smilemukul/ Thanks for your kind concerns.
However, for fixing this rproblem, I reinstalled scientific linux, but it became more serious problem.
03-21-2012, 02:59 AM
#24
Member
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292
Rep:
Are you able to connect to the web & if not then can print,
1. ifconfig eth0
2. Print status of ping google.com
3. /etc/sysconfig/network
4. /etc/sysconfig/network-scripts/ifcfg-eth0
5. iptables -L
6. hostname
7. export |grep proxy_http
Also let me know if you had configure any proxy server settings ?
1 members found this post helpful.
03-21-2012, 09:46 PM
#25
Member
Registered: Nov 2008
Posts: 489
Original Poster
Rep:
Everytime I should execute "service NetworkManager start" after booting.
1. ifconfig eth0
Quote:
[root@linux ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 08:00:27:AE:64:B2
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feae:64b2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:7667 (7.4 KiB)
2. Print status of ping google.com
Quote:
[root@linux ~]# ping google.com
ping: unknown host google.com
3. /etc/sysconfig/network
Quote:
NETWORKING=yes
HOSTNAME=linux.iptime.org
NETOWRKING_IPV6=no
GATEWAY=192.168.0.1
4. /etc/sysconfig/network-scripts/ifcfg-eth0
Quote:
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="eth0"
UUID=d279b508-fa23-4f9f-81c8-d98ae0875eab
ONBOOT=yes
DEVICE=eth0
USERCTL=yes
HWADDR=08:00:27:AE:64:B2
IPADDR=192.168.0.4
PREFIX=24
GATEWAY=192.168.0.1
DNS1=8.8.8.8
5. iptables -L
* I disabled firewall and selinux for resolving this problem.
Quote:
[root@linux ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
6. hostname
Quote:
[root@linux ~]# hostname
linux.iptime.org
*This is my domain, so I changed first word.
7. export |grep proxy_http
Quote:
[root@maestro ~]# export |grep proxy_http
[root@maestro ~]#
Also let me know if you had configure any proxy server settings ?
* I don't know how to set up proxy server.
03-22-2012, 03:31 AM
#26
Member
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292
Rep:
Are you able to ping to your gateway server & if not then there is some issue between your server & gateway.You can check
your hardware connections & cables.
1 members found this post helpful.
03-22-2012, 01:36 PM
#27
Member
Registered: Nov 2008
Posts: 489
Original Poster
Rep:
smilemukul/ Unfortuantelly the ping does not get to gateway. I'll check "your server & gateway" and network connections.
Thanks for your kind attention.
All times are GMT -5. The time now is 07:42 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News