Mailinglist Archive: opensuse (4547 mails)

< Previous Next >
Re: [SLE] Proper netmask configuration?
  • From: "James D. Ivey" <jim@xxxxxxxxxxx>
  • Date: Tue, 04 May 2004 09:26:48 -0700
  • Message-id: <1083688008.5687.44.camel@xxxxxxxxxxxxxxxxxxx>
Thanks for all the help so far. Here are some more tidbits...

On Tue, 2004-05-04 at 08:38, Anders Johansson wrote:
> On Tuesday 04 May 2004 17.15, James D. Ivey wrote:
> > I'm not sure I understand the question. Hardware-wise, I have a switch
> > coupled to a router coupled to a DSL modem coupled to the Internet
> > through SBC. The router's IP is correctly shown in "route" as the
> > gateway. The genmask is the same 255.255.255.255. Should be
> > 255.255.255.0.
>
> Actually, the genmask for the default gateway should be 0.0.0.0
>
> What do the scripts say in /etc/sysconfig/network?

linux1:/home/jim # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
router.localnet * 255.255.255.255 UH 0 0 0
eth0
default router.localnet 0.0.0.0 UG 0 0 0
eth0

linux1:/etc/sysconfig/network # cat routes
# Destination Dummy/Gateway Netmask Device
#
default 192.168.1.19 - -

/etc/sysconfig/network/ifconfig-eth0 is shown below....

On Tue, 2004-05-04 at 08:31, Brad Shelton wrote:
>
> How do you get your IP address? DHCP, or static?

Static. This machine serves DHCP to the rest of the network (or at
least the parts that need it).

On Tue, 2004-05-04 at 08:41, Pieter Hulshoff wrote:
> On Monday 03 May 2004 23:35, James D. Ivey wrote:
> > "ifconfig" says the following about eth0:
> > inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.255
>
> What is the netmask defined in /etc/sysconfig/network/ifcfg-eth0? If it's
> incorrect there, you could try a manual edit of the file, and then a restart
> of your network.

linux1:/etc/sysconfig/network # cat ifcfg-eth0
BOOTPROTO='static'
BROADCAST='192.168.1.255'
IPADDR='192.168.1.5'
MTU=''
NETMASK='255.255.255.0'
NETWORK='192.168.1.0'
REMOTE_IPADDR='192.168.1.19'
STARTMODE='onboot'
UNIQUE=<don't really need to know that, do you?>

Again, thanks so much to everyone looking into this.

Best regards,

Jim
--
James D. Ivey <jim@xxxxxxxxxxx>
Law Offices of James D. Ivey

This e-mail address is heavily spammed and heavily filtered. It's
better to reach me through my web site: http://www.iveylaw.com



< Previous Next >
Follow Ups