pavement

Network configuration, troubleshooting

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Here are common problems with setting up the network, and solutions. ==etc/== Except for a few exceptions, be sure that custom settings are located under ''/usr/local/etc/''....")
 
Line 4: Line 4:
 
Except for a few exceptions, be sure that custom settings are located under ''/usr/local/etc/''. /etc configurations can be updated by running processes at. This explains why functionality can break, and may have to be updated if only relying on network configuration files in ''/etc'' .
 
Except for a few exceptions, be sure that custom settings are located under ''/usr/local/etc/''. /etc configurations can be updated by running processes at. This explains why functionality can break, and may have to be updated if only relying on network configuration files in ''/etc'' .
  
==rc.conf==
+
===rc.conf===
 
This file is an exception and it belongs in ''/etc'' to be customized by the user.
 
This file is an exception and it belongs in ''/etc'' to be customized by the user.
  
Line 15: Line 15:
 
  ifconfig_wlan0="WPA DHCP"
 
  ifconfig_wlan0="WPA DHCP"
  
==hosts==
+
===hosts===
 
Edit the file at /usr/local/etc/hosts.conf
 
Edit the file at /usr/local/etc/hosts.conf
  
Line 23: Line 23:
 
  #the localhost variable can optionally be replaced with the name of your computer
 
  #the localhost variable can optionally be replaced with the name of your computer
  
==resolv.conf==
+
===resolv.conf===
 
Edit the file /usr/local/etc/resolv.conf . A line containing "DNS" may have to be commented out.
 
Edit the file /usr/local/etc/resolv.conf . A line containing "DNS" may have to be commented out.
 
resolv.conf should look something like this:
 
resolv.conf should look something like this:
 
  search gateway.yourgateway.com    # search + gateway. and the word name of your gateway (without its localhost)
 
  search gateway.yourgateway.com    # search + gateway. and the word name of your gateway (without its localhost)
 
  nameserver 192.168.x.x            # nameserver + numerical ip of gateway
 
  nameserver 192.168.x.x            # nameserver + numerical ip of gateway
 +
 +
[[Category:Configuring FreeBSD]]
 +
[[Category:FreeBSD for Servers]]
 +
[[Category:Important Config Files]]

Revision as of 10:11, 21 December 2014

Here are common problems with setting up the network, and solutions.

Contents

etc/

Except for a few exceptions, be sure that custom settings are located under /usr/local/etc/. /etc configurations can be updated by running processes at. This explains why functionality can break, and may have to be updated if only relying on network configuration files in /etc .

rc.conf

This file is an exception and it belongs in /etc to be customized by the user.

Be sure to have the line:

defaultrouter="192.168.[your gateway ip address here]"

These are common settings used for a wireless card:

hostname="[your computer's host name]"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"

hosts

Edit the file at /usr/local/etc/hosts.conf

The commented out line is artificially added here for explanation:

#gateway ip     localhost     localhost.namedgateway
192.168.x.x     localhost     localhost.yourgatewayname.com
#the localhost variable can optionally be replaced with the name of your computer

resolv.conf

Edit the file /usr/local/etc/resolv.conf . A line containing "DNS" may have to be commented out. resolv.conf should look something like this:

search gateway.yourgateway.com     # search + gateway. and the word name of your gateway (without its localhost)
nameserver 192.168.x.x             # nameserver + numerical ip of gateway
Personal tools