[ale] assigning ip to second interface

Wandered Inn esoteric at denali.atlnet.com
Tue Aug 15 12:06:11 EDT 2000


Joe Knapka wrote:
> 
> What is the exact ifconfig command you are using? (For both
> cards, just for the heck of it.)

Here is how it's called from the network script in /etc/rc.d/init.d:

ifconfig eth0 192.168.255.220 broadcast 192.168.255.255 netmask
255.255.255.0 up

ifconfig eth1 "192.168.55.320 broadcast 192.168.55.255 netmask
255.255.255.0 up

Note, I changed the ip for eth1, it was 192.168.255.320, but either way
does not work.  I can bring this nic up with 'ifconfig eth1 up', but
there's no ip associated with it when executing 'ifconfig' at that
point.

> 
> -- Joe
> 
> Wandered Inn wrote:
> >
> > Jennifer Taylor wrote:
> > >
> > > ** Low Priority **
> > >
> > > Are you attempting to build a firewall machine?  If so you definitely want your two NICs on different networks.  IPCHAINS handles movement from your internal addresses to the external one.  (? correct if I'm wrong...I seem to have a large layer of fuzz on my brain this morning).
> >
> > Yes, I am putting together a firewall.  I know they will eventually be
> > on different subnets, but I attempted to just get the thing to come up
> > properly, therefore assigned it an ip on the same subnet.  I've since
> > changed it to a different subnet, but I still get the same error
> > 'unknown host' from ifconfig.
> >
> > I'm currently using ipchains and forwarding to permit multiple machines
> > access to my single internet connnection.
> >
> > I've read the book 'Linux Firewalls' and been studying 'Building
> > Internet Firewalls' and 'Maximum Linux Security' as well.  Hasn't made
> > me an expert in this area yet though. :(
> >
> > >
> > > Out of curiosity, if you already know that and are trying to put both NICs on the same subnet, what are you doing with this machine?  I'm not terribly network savvy myself and always looking to find interesting things to try.
> >
> > Just testing the card availability at this time.  Assigning it an ip
> > from a different subnet didn't make any difference.
> >
> > >
> > > jenn
> > >
> > > >>> Wandered Inn <esoteric at denali.atlnet.com> 08/15 10:43 AM >>>
> > > I'll first admit I'm a bit ignorant here.  I've been doing a lot of
> > > reading on firewalls and such, but, I'm still stumped...
> > >
> > > I've got two nics in a single machine working now, I think. Problem is,
> > > when I attempt to start the network for both cards, ifconfig complains
> > > 'unknown host' and won't start.  I'm not sure how it determines this.
> > > Does this card have to have an ip that's on a different subnet?  I tried
> > > to assign it an ip that would be on the same subnet as the other card.
> > > (both in /etc/hosts and the configuration setup).
> > >
> > > I'm not sure where this thing determines what a 'known host' is.  I've
> > > added the second ip to the /etc/hosts file.
> > >
> > > I can't find anything regarding this in the ethernet, net or firewall
> > > howtos.  A pointer to the right doc would be appreciated.
> > >
> >
> > --
> > Until later: Geoffrey           esoteric at denali.atlnet.com
> >
> > Microsoft != Innovation
> > --
> > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
> 
> --
> *** Joseph Knapka ***
> In any formula, constants (especially those obtained from handbooks)
> are to be treated as variables.

--
Until later: Geoffrey		esoteric at denali.atlnet.com

Microsoft != Innovation
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list