Solved

online

Posted on 2013-01-31
11
206 Views
Last Modified: 2013-02-28
I cannot go online...

in my linux machine in my other machine with same configuration it is working fine..
I did everything same configuration..I checked everything
but I cannot go online...
screen shot attached...
net.png
0
Comment
Question by:walkerdba
  • 5
  • 4
  • 2
11 Comments
 
LVL 23

Expert Comment

by:savone
ID: 38841429
We will need more information to help.

Are you using DHCP or Static IP address?
Are you using a proxy server?

Cat you post the output of the following commands:

cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/sysconfig/network
cat /etc/resolv.conf

That is a good start.
0
 

Author Comment

by:walkerdba
ID: 38841737
[root@term ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.2.255
HWADDR=00:0C:29:FE:8B:5F
IPADDR=192.168.2.45
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
TYPE=Ethernet
[root@term ~]#

[root@term ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=term.localdomain
[root@term ~]#


[root@term ~]# cat /etc/resolv.conf
nameserver 192.168.0.1
search hsd1.ca.comcast.net.
[root@term ~]#
0
 
LVL 23

Expert Comment

by:savone
ID: 38841951
Your DNS is set to 192.168.0.1 which is a different subnet that your IP address.  

try this:

ping 192.168.0.1

and post the results.
0
 

Author Comment

by:walkerdba
ID: 38842438
[root@term ~]# ping 192.168.0.1
connect: Network is unreachable
[root@term ~]#
0
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 38842743
Can you also post the config of the working box.

As the expert says, this box needs to be on the same network as the DNS + Gateway.

See an example of my box

[root@ewok ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BROADCAST=172.16.255.255
IPADDR=172.16.1.46
NETMASK=255.255.0.0
NETWORK=172.16.0.0
GATEWAY=172.16.1.39
ONBOOT=yes
TYPE=Ethernet

Your current setup will work if you have a router in between your two networks, even then, you still need to change a few things.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:walkerdba
ID: 38843021
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.2.255
HWADDR=00:0C:29:FE:8B:5F
IPADDR=192.168.2.45
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
TYPE=Ethernet
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~
0
 
LVL 17

Expert Comment

by:Sikhumbuzo Ntsada
ID: 38843051
Can you successfully ping another machine on your network?
Is there a firewall ?
0
 
LVL 23

Expert Comment

by:savone
ID: 38843754
One the working machine, post the output of the following three commands:

ping 192.168.0.1

dig google.com

route -n
0
 

Author Comment

by:walkerdba
ID: 38860636
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.2.255
HWADDR=00:0C:29:FE:8B:5F
IPADDR=192.168.2.45
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.2.0
ONBOOT=yes
TYPE=Ethernet
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                              
~                                                                    



Machine is pinging with public address  no issues

but with DNS

[root@term network-scripts]# ping 192.168.0.1
connect: Network is unreachable
[root@term network-scripts]#
0
 
LVL 23

Accepted Solution

by:
savone earned 500 total points
ID: 38860907
I dont understand you last comment, can you please post the output of the following commands run from the working machine:

ping 192.168.0.1

dig google.com

route -n
0
 

Author Closing Comment

by:walkerdba
ID: 38938641
yes
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now