You are not logged in.

#1 2013-02-22 05:37:32

AbsoZed
Member
Registered: 2013-02-22
Posts: 3

Can ping router, no Internet, static address. [SOLVED]

Hi, everyone.

For some reason, during install, my internet worked perfectly using DHCP. However, I couldn't get DHCP to work for some reason, so I tried static. Now I can ping my gateway(router), but no internet. I'll post the things I find relevant, although I may be WAY off. I'd really appreciate your help smile

Output of  ip addr

 enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
 link/ether  00:23:7e:04:31:9a brd ff:ff:ff:ff:ff:ff
inet 192.168.0.45/24 scope global enp0s25
inet 192.168.0.27/24 scope global secondary enp0s25 

output of ip route:

default via 192.168.0.1 dev enp0s25
192.168.0.0/24 dev enp0s25 proto kernel scope link src 192.168.0.45

/etc/resolv.conf:

#
# /etc/resolv.conf
#
nameserver 4.2.2.2
nameserver 8.8.4.4
#End of file

Thanks for the help guys. Much appreciated.

Last edited by AbsoZed (2013-02-22 14:31:54)

Offline

#2 2013-02-22 06:09:26

radopi
Member
Registered: 2013-02-22
Posts: 3

Re: Can ping router, no Internet, static address. [SOLVED]

Can you Ping a IP directly?

Offline

#3 2013-02-22 06:49:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Can ping router, no Internet, static address. [SOLVED]

So if you can get dhcp to work, then you would use it?  I am just thinking that you are only using a statis IP as an attempted workaround to your issue.  If this is the case, it would likely be easier getting dhcpcd or netcfg or wicd or something working with dhcpcd or dhclient.

Last edited by WonderWoofy (2013-02-22 06:49:55)

Offline

#4 2013-02-22 08:35:34

AbsoZed
Member
Registered: 2013-02-22
Posts: 3

Re: Can ping router, no Internet, static address. [SOLVED]

No, I can't ping an IP. Pinging any external IP results in timeouts.

No, I couldn't get DHCP working, and this is a workaround. I tried enabling the systemctl dhcpd, and that resulted in 'no such file or directory'.

Offline

#5 2013-02-22 08:47:40

progandy
Member
Registered: 2012-05-17
Posts: 2,152

Re: Can ping router, no Internet, static address. [SOLVED]

The service is called dhcpcd@$INTF. replace $INTF with enp0s25:

systemctl enable dhcpcd@enp0s25
systemctl start dhcpcd@enp0s25

Offline

#6 2013-02-22 08:52:08

AbsoZed
Member
Registered: 2013-02-22
Posts: 3

Re: Can ping router, no Internet, static address. [SOLVED]

progandy wrote:

The service is called dhcpcd@$INTF. replace $INTF with enp0s25:

systemctl enable dhcpcd@enp0s25
systemctl start dhcpcd@enp0s25

Good lord, I'm dumb. Thank you so much! Helpful community indeed. Much appreciated, sir!

Offline

Board footer

Powered by FluxBB