You are not logged in.

#1 2008-10-02 19:59:11

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Gateway problem - netcfg2

Hello,

I am trying to connect to a network with netcfg2 and using static IP but I get the following error:

:: hornet-static up  - Adding gateway 130.88.171.250 failed                                                                                    [FAIL]
bash-3.2#  No such process

The file is like the ethernet-static sample file, I just changed the values. I didn't change the broadcast one, because I wasn't given one.

Thanks for your help.

Offline

#2 2008-10-02 22:52:52

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Gateway problem - netcfg2

Please post the netcfg profile you are using and your rc.conf.

Offline

#3 2008-10-02 23:22:10

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Gateway problem - netcfg2

Hey tigrmesh, I remember you from the #! big_smile

Here they are:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_GB.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="UTC"
KEYMAP="pt-latin9"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(r8169 iwl4965 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore fuse)

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

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="hugelaptop"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 130.88.162.88 netmask 255.255.255.0 broadcast 255.255.255.255"
INTERFACES=(eth0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 130.88.171.250"
ROUTES=(gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(university)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond alsa fam hal xinetd laptop-mode mpd lighttpd mysqld)

CONNECTION="ethernet"
DESCRIPTION="A less basic ethernet profile, using static configuration"
INTERFACE=eth0
IP="static"
IFOPTS="130.88.162.88 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY="130.88.171.250"
DNS1=130.88.212.134
DNS2=130.88.212.135

Offline

#4 2008-10-03 01:04:55

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: Gateway problem - netcfg2

Your netmask and broadcast address are wrong. Better ask your site admin. I mean, you could probably whip out tcpdump or wireshark to get a sense of your local network layout... but that might overdo it.

Edit: Well, ok. Try netmask 255.255.240.0 and broadcast 130.88.175.255 ... never knew there's a whole bunch of these online subnet mask calculators.

Last edited by byte (2008-10-03 01:10:37)


1000

Offline

#5 2008-10-03 08:09:56

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Gateway problem - netcfg2

It's working! Thank you so much.

Offline

Board footer

Powered by FluxBB