I have set up my computer up as a router.
eth0
Is the insite network:
address 192.168.0.1 uses a static ip-address
eht1
Is my outsite netork. It used to have a static addres, now it's only working with dhcpcd.
address 192.168.178.28 now uses dhcp.
If it might not be possible to have a static addres with wpa_supplicant I would like that /etc/resolv.conf isn't alterted.
I tried to do this by setting dhcp_eth1="nodns" but it didn't work.
Can anyone tell me how to make wpa_supplicant work with a static addres or option B to make nodns possible?
I will post some config files here:
Code: Select all
elmarotter@masterserver ~ $ cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /usr/share/doc/openrc/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
dns_domain_lo="eotter1979.xs4all.nl"
config_eth0="192.168.0.1 netmask 255.255.255.0 brd 192.168.0.255"
#routes_eth0="default via 192.168.0.1"
dns_servers_eth0="192.168.0.1"
associate_timeout_eth0=60
gateways_eth1="192.168.178.1"
modules="wpa_supplicant"
wpa_supplicant_eth1="-Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf"
wpa_timeout_eth1=60
associate_timeout_eth1=60
config_Earth_eth1="192.168.178.28 netmask 255.255.255.0 brd 192.168.178.255"
dns_servers_Earth_eth1="192.168.0.1"
routes_Earth_eth1="default via 192.168.0.1"
dhcp_Earth_eth1="release nodns"
#config_routes_eth1="192.168.178.28/24 netmask 255.255.255.0 brd 192.168.178.255"
#dns_servers_routes_eth1="192.168.0.1"
#routes_routes_eth1="default via 192.168.0.1"
fallback_eth1="dhcp"
iwconfig_eth1="mode managed"
Code: Select all
elmarotter@masterserver ~ $ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
Wachtwoord:
# The below line not be changed otherwise we refuse to work
update_config=1
ctrl_interface_group=0
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
country=nl_NL
network={
ssid="Earth"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="*********************"
priority=5
}
Code: Select all
elmarotter@masterserver ~ $ sudo rc-update
acpid | battery default
amavisd | default
apache2 | battery default
avahi-daemon | battery default
bootmisc | boot
clamd | default
courier-imapd | default
courier-imapd-ssl | default
courier-pop3d-ssl | default
cupsd | battery default
dbus | battery default
devfs | sysinit
dhcpcd | default
dhcpd | default
dmesg | sysinit
fsck | boot
hostname | boot
hwclock | boot
iptables | battery default
keymaps | boot
killprocs | shutdown
local | battery default
localmount | boot
mailman | default
modules | boot
mount-ro | shutdown
mtab | boot
mysql | battery default
named | default
net.eth0 | battery default
net.eth1 | battery default
net.lo | boot
netmount | battery default
ntp-client | battery default
ntpd | battery default
postfix | default
postgrey | default
procfs | boot
pure-ftpd | battery default
root | boot
samba | battery default
saslauthd | default
savecache | shutdown
squid | battery default
sshd | battery default
swap | boot
sysctl | boot
syslog-ng | battery default
termencoding | boot
udev | sysinit
udev-postmount | battery default
urandom | boot
vixie-cron | battery default
elmarotter@masterserver ~ $




