You are not logged in.

#1 2014-02-19 18:13:49

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

[SOLVED]netctl static - not connected

Hello,

I try to set static IP on my server. It is connect by ethernet to router. I disabled dhcpd@.service using systemd and set this profile in /etc/netctl/et2s:

Description='Static ethernet connection'
Interface=enp0s25
Connection=ethernet
IP=static
Address=('192.168.1.200/24')
Gateway='192.168.0.1'
DNS=('192.168.0.1')

when I run

netctl start et2s

it "connects" normally and my ifconfig output shows right IP address, I can ping router, other IPs in my network and router administration page shows that this right IP is connected with static IP. But I can't connect to the internet (eg ping google). This static IP is outside the DHCP pool. Same problems with static wireless. With dhcp it works find.

Thank you

Edit: ifconfig also shows netmask 255.255.255.0  broadcast 192.168.0.255, which looks same as on other PCs in network (or when I connected using dhcp)


SOLUTION: Sorry, my fault. I had to set DNS to my internet provider, which isn't 192.168.0.1.

Last edited by Kotrfa (2014-02-19 18:53:25)

Offline

Board footer

Powered by FluxBB