Results 1 to 8 of 8
Hello,
Few days ago i rebooted my pld linux server. To this time i have huge issue. I lost connection to internet however i can still ping a gateway from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-10-2012 #1Just Joined!
- Join Date
- Apr 2012
- Posts
- 7
Problem after reboot - no internet connection
Hello,
Few days ago i rebooted my pld linux server. To this time i have huge issue. I lost connection to internet however i can still ping a gateway from this server and from ouside.
To be sure i connected a notebook to gateway and it works fine.
Im so depressed !
Sorry for such a nooby post but im really newb. Plz give me some advice what can i do ? Should i paste here some kind of info ? Plz help
- 04-11-2012 #2
Post the output from the following commands;
Code:ifconfig route -n
- 04-11-2012 #3Just Joined!
- Join Date
- Apr 2012
- Posts
- 7
Code:Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 78.133.218.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth2 78.133.218.16 0.0.0.0 255.255.255.248 U 0 0 0 eth4 78.133.218.16 0.0.0.0 255.255.255.248 U 0 0 0 eth5 78.133.218.125 0.0.0.0 255.255.255.255 UH 0 0 0 eth4 78.133.218.168 0.0.0.0 255.255.255.248 U 0 0 0 eth2 78.133.218.168 0.0.0.0 255.255.255.248 U 0 0 0 eth3 172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 172.16.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 172.16.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth5 172.16.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 172.16.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.10 172.16.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.20 172.16.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.30 172.16.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.40 172.16.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.50 172.16.60.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.60 172.16.70.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.70 172.16.80.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.80 172.16.90.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.90 172.16.99.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.99 ifconfig eth0 Link encap:Ethernet HWaddr 00:15:17:41:48:C0 inet addr:172.16.3.1 Bcast:172.16.3.255 Mask:255.255.255.0 UP 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:18 Memory:b8820000-b8840000 eth1 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.0.1 Bcast:172.16.0.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:135409 errors:0 dropped:0 overruns:0 frame:0 TX packets:53586 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16212286 (15.4 Mb) TX bytes:11871689 (11.3 Mb) Interrupt:19 Memory:b8800000-b8820000 eth1.10 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.10.1 Bcast:172.16.10.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:59765 errors:0 dropped:1 overruns:0 frame:0 TX packets:31853 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7753673 (7.3 Mb) TX bytes:5973103 (5.6 Mb) eth1.20 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.20.1 Bcast:172.16.20.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:39240 errors:0 dropped:1 overruns:0 frame:0 TX packets:14654 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3044668 (2.9 Mb) TX bytes:4268238 (4.0 Mb) eth1.30 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.30.1 Bcast:172.16.30.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:3544 errors:0 dropped:0 overruns:0 frame:0 TX packets:3169 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:327198 (319.5 Kb) TX bytes:468356 (457.3 Kb) eth1.40 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.40.1 Bcast:172.16.40.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:26 errors:0 dropped:0 overruns:0 frame:0 TX packets:268 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1092 (1.0 Kb) TX bytes:11472 (11.2 Kb) eth1.50 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.50.1 Bcast:172.16.50.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:1644 (1.6 Kb) eth1.60 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.60.1 Bcast:172.16.60.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:552 (552.0 b) eth1.70 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.70.1 Bcast:172.16.70.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:552 (552.0 b) eth1.80 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.80.1 Bcast:172.16.80.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:60 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:2736 (2.6 Kb) eth1.90 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.90.1 Bcast:172.16.90.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:552 (552.0 b) eth1.99 Link encap:Ethernet HWaddr 00:15:17:41:48:C1 inet addr:172.16.99.1 Bcast:172.16.99.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe41:48c1/64 Scope:Link UP BROADCAST RUNNING MTU:1500 Metric:1 RX packets:16864 errors:0 dropped:0 overruns:0 frame:0 TX packets:2599 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1290912 (1.2 Mb) TX bytes:598882 (584.8 Kb) eth2 Link encap:Ethernet HWaddr 00:1B:21:2D:43:94 inet addr:78.133.218.169 Bcast:78.133.218.175 Mask:255.255.255.248 inet6 addr: fe80::21b:21ff:fe2d:4394/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13002 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:780829 (762.5 Kb) TX bytes:510 (510.0 b) eth3 Link encap:Ethernet HWaddr 00:1B:21:2D:43:95 inet addr:172.16.1.1 Bcast:172.16.1.255 Mask:255.255.255.0 inet6 addr: fe80::21b:21ff:fe2d:4395/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:140335 errors:0 dropped:0 overruns:0 frame:0 TX packets:69429 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11091212 (10.5 Mb) TX bytes:5998103 (5.7 Mb) eth4 Link encap:Ethernet HWaddr 00:1B:21:2D:43:96 inet addr:78.133.218.17 Bcast:78.133.218.23 Mask:255.255.255.248 inet6 addr: fe80::21b:21ff:fe2d:4396/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:26814 errors:0 dropped:0 overruns:0 frame:0 TX packets:35 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1676089 (1.5 Mb) TX bytes:1686 (1.6 Kb) eth5 Link encap:Ethernet HWaddr 00:1B:21:2D:43:97 inet addr:172.16.2.1 Bcast:172.16.2.255 Mask:255.255.255.0 UP 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) 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:4254 errors:0 dropped:0 overruns:0 frame:0 TX packets:4254 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:274814 (268.3 Kb) TX bytes:274814 (268.3 Kb)
- 04-11-2012 #4
As you can see there is no default gateway setup in your routing tables. You are going to have to setup a default gateway in order to get out.
- 04-12-2012 #5Just Joined!
- Join Date
- Apr 2012
- Posts
- 7
Can u point a place with a configuration file ? No idea where it is
- 04-12-2012 #6Just Joined!
- Join Date
- Apr 2012
- Posts
- 10
/etc/network/interfaces is the usual place
- 04-12-2012 #7
Hay Zacard, I hope you are well, In regards to your question
You are Experiencing this because the more technical distros require you to manually bring a interface up or down, or set services to load on boot. your best option is to set a static ip.Can u point a place with a configuration file ? No idea where it is
set the ip in a range between say 192.168.1.1 and 192.168.1.20, but make sure that no othere computers are using these ip addresses at the time so you can be sure you are not trying to use an already allocated address , (just turn the others off whilst you do this) Don't worry your other pc's will get a different ip when they boot again.
Over the many distros of linux there are different locations that a static interface can be configured, I know of to that might help you.
Backtrack /Gnome :
For example If you wanted to statically assign Eth0 an ip or gateway etc... you would type this in the interfaces text doc.Code:vim/etc/network/interfaces
Save thatCode:auto eth0 iface eth0 inet static address 192.168.1.16 (your ip) netmask 255.255.255.0 (netmask) gateway 192.168.1.254 (your gateway)
Then,
edit this to what your DNS Server is, most likely your routers IP.Code:vim/etc/resolve.conf
Code:nameserver 192.168.1.254 (your DNS server Ip)
Now,
.etc/init.d/networking restart
For Centos/RH :
To make Eth0 for examplevim /etc/sysconfig/network-scripts
Inside the doc use this formatvim ifcfg-eth0
thenDEVICE=eth0 (the device int)
ONBOOT=yes (if ya want to run on boot "yes" if not "no"
TYPE=Ethernet (type of int) (optional)
BOOTPROTO=static (if your adding a static ip "static" if ya want DHCP to figure it out use "dhcp"
IPADDR=192.168.1.1 (static ip not needed if using dhcp)
GATEWAY=192.168.1.254 (router ip)
DNS=192.168.1.254 (prob same as gateway ip)
NAME="my eth0" (optional)
I hope this helps.service network restart
Thanks
BenLast edited by slapandtickle69; 04-12-2012 at 08:30 AM.
- 04-12-2012 #8
This is good and this is the address that you are going to need to set as your default gateway.
If you are running RH or one of its siblings then you need to goto /etc/sysconfig/network-scripts and edit ifcfg-eth0 and make sure you have the following:
There is more code you could add but is not necessary for the interface to function.Code:DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=<ip address you assigned this interface> GATEWAY=<the ip address you can ping that is the gateway>


Reply With Quote

