You are not logged in.

#1 2008-12-22 18:05:10

aaaantoine
Member
Registered: 2008-12-12
Posts: 44

Trying to Connect to Domain using netcfg

I've been trying all morning to connect my laptop to the local network but it won't take.  Can anyone help me finish this configuration?

The first issue -- and I hope it's the only issue -- is that netcfg fails to connect to the gateway.

Contents of /etc/rc.conf:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#
# remaining comment lines removed to reduce clutter

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="US/Eastern"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(powernow-k8 cpufreq_ondemand cpufreq_powersave vboxdrv 8139cp 8139too mii b43 !bcm43xx snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore hci_usb bluetooth hidp l2cap)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

HOSTNAME="aspire-5050"

eth0="dhcp"
INTERFACES=(!eth0)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

NETWORKS=(!eth0 !wlan0)
AUTO_NETWORKS=(auto-wireless wlan0)

DAEMONS=(syslog-ng !acpid cpufreqd network hal @bluetooth !dhcdbd !networkmanager @net-auto netfs crond alsa fam @dnsmasq laptop-mode kdm)

Contents of /etc/network.d/ethernet-work:

CONNECTION="ethernet"
DESCRIPTION="Connect to Ethernet at Work"
INTERFACE=eth0
DOMAIN=workdomain
IP="static"
IFOPTS="192.168.1.104 netmask 255.255.255.0 broadcast 192.168.2.255"
GATEWAY="192.168.2.10"
DNS1=xx.yy.zz.8 #hypothetical
DNS2=xx.yy.zz.9 #hypothetical

When I try to connect:

$ sudo netcfg ethernet-work
:: ethernet-work up   [BUSY]
SIOCADDRT: No such process
   - Adding gateway 192.168.2.10 failed   [FAIL]

My Google searching has revealed that I can use...

# route add 192.168.2.10 eth0

And then try again.  Then it tells me it connected, but I can't ping anything beyond my own IP address.

Any help in resolving this would be appreciated.

Optimally, I would prefer a GUI application for this, but I don't know of any that work with KDE4.

Last edited by aaaantoine (2008-12-22 18:08:05)

Offline

Board footer

Powered by FluxBB