Can't connect to router when setting static IP address in FreeBSD
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a FreeBSD machine that I'm trying to configure with a static IP address, so I added the following lines to the /etc/rc.conf file
ifconfig_wlan0="inet 192.168.0.20 netmask 255.255.255.0"
defaultrouter="192.168.0.10"
after restarting the network service I can no longer connect to the router. If I ping it I get the message host is down. If I set wlan0 to use DHCP in /etc/rc.conf, I can connect to the router fine, but if I try to set a static IP I can't connect. Any idea what I might be doing wrong here?
freebsd
New contributor
add a comment |Â
up vote
0
down vote
favorite
I have a FreeBSD machine that I'm trying to configure with a static IP address, so I added the following lines to the /etc/rc.conf file
ifconfig_wlan0="inet 192.168.0.20 netmask 255.255.255.0"
defaultrouter="192.168.0.10"
after restarting the network service I can no longer connect to the router. If I ping it I get the message host is down. If I set wlan0 to use DHCP in /etc/rc.conf, I can connect to the router fine, but if I try to set a static IP I can't connect. Any idea what I might be doing wrong here?
freebsd
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a FreeBSD machine that I'm trying to configure with a static IP address, so I added the following lines to the /etc/rc.conf file
ifconfig_wlan0="inet 192.168.0.20 netmask 255.255.255.0"
defaultrouter="192.168.0.10"
after restarting the network service I can no longer connect to the router. If I ping it I get the message host is down. If I set wlan0 to use DHCP in /etc/rc.conf, I can connect to the router fine, but if I try to set a static IP I can't connect. Any idea what I might be doing wrong here?
freebsd
New contributor
I have a FreeBSD machine that I'm trying to configure with a static IP address, so I added the following lines to the /etc/rc.conf file
ifconfig_wlan0="inet 192.168.0.20 netmask 255.255.255.0"
defaultrouter="192.168.0.10"
after restarting the network service I can no longer connect to the router. If I ping it I get the message host is down. If I set wlan0 to use DHCP in /etc/rc.conf, I can connect to the router fine, but if I try to set a static IP I can't connect. Any idea what I might be doing wrong here?
freebsd
freebsd
New contributor
New contributor
New contributor
asked 4 mins ago
KKloke
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
KKloke is a new contributor. Be nice, and check out our Code of Conduct.
KKloke is a new contributor. Be nice, and check out our Code of Conduct.
KKloke is a new contributor. Be nice, and check out our Code of Conduct.
KKloke is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475204%2fcant-connect-to-router-when-setting-static-ip-address-in-freebsd%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password