- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- no internet
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 08:30 PM
02-07-2011 08:30 PM
no internet
My network looks like this
INTERNET
|
|
Gateway(10.20.0.1)
|
|
LINUX-MACHINE(Centos 5.5 64bit)
I issued following commands:
ifconfg eth0 10.20.0.2 netmask 255.255.0.0
route add default gw 10.20.0.1 netmask 255.255.0.0
I can ping the gateway (10.20.0.1) but not the outside world (4.2.2.2).
'Network is unreachable'
Why would that be ?
Regards
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2011 08:57 PM
02-07-2011 08:57 PM
Re: no internet
> I issued following commands:
Your opinions are interesting, but what does
the machine have to say? As usual, showing
actual commands with their actual output can
be more helpful than vague descriptions or
interpretations.
ifconfig eth0
netstat -rn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 02:32 AM
02-08-2011 02:32 AM
Re: no internet
You probably already know that 10.*.*.* IP addresses are not globally unique and therefore a system using one of those addresses cannot access Internet without some kind of NAT in between, right?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 06:46 AM
02-08-2011 06:46 AM
Re: no internet
What kind of Gateway do you have? Is it a normal/ typical consumer Gateway/Router?
INTERNET
|
| (WAN-IP from ISP)
GATEWAY (Router)
| (Gateway IP)
|
| Your Local LAN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 09:31 AM
02-08-2011 09:31 AM
Re: no internet
eth0 Link encap:Ethernet HWaddr 00:0C:29:EC:6D:DD
inet addr:10.20.0.2 Bcast:10.20.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4457 errors:0 dropped:0 overruns:0 frame:0
TX packets:1783 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2880399 (2.7 MiB) TX bytes:216505 (211.4 KiB)
[root@localhost ~]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.20.0.1 255.255.0.0 UG 0 0 0 eth0
10.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
[root@localhost ~]# ping 10.20.0.1
PING 10.20.0.1 (10.20.0.1) 56(84) bytes of data.
64 bytes from 10.20.0.1: icmp_seq=1 ttl=64 time=4.65 ms
64 bytes from 10.20.0.1: icmp_seq=2 ttl=64 time=0.925 ms
--- 10.20.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.925/2.790/4.656/1.866 ms
[root@localhost ~]# ping 4.2.2.2
connect: Network is unreachable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 09:35 AM
02-08-2011 09:35 AM
Re: no internet
I use Linksys WRT54GL for gateway - there is no problem with the connection if I get the settings from DHCP or even set them manually.
But I was trying to set the IP and gateway fast form command line while doing certain installation and it did not work which made me curious on why ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 10:48 AM
02-08-2011 10:48 AM
Re: no internet
If you do it via DHCP.. what values are you getting for IP and route?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2011 11:58 AM
02-08-2011 11:58 AM
Re: no internet
[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:EC:6D:DD
inet addr:10.20.20.198 Bcast:10.20.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7860 errors:0 dropped:0 overruns:0 frame:0
TX packets:2836 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3288249 (3.1 MiB) TX bytes:459431 (448.6 KiB)
[root@localhost ~]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 10.20.0.1 0.0.0.0 UG 0 0 0 eth0
So what is this:
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
?