ifconfig command shows the following:
eth0      Link encap:Ethernet  HWaddr 52:54:00:E6:5C:F5
          inet addr:63.229.139.217  Bcast:63.229.139.223  Mask:255.255.255.248

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:52165 errors:0 dropped:0 overruns:0 frame:0
          TX packets:58982 errors:0 dropped:0 overruns:0 carrier:0
          collisions:3 txqueuelen:100
          Interrupt:10 Base address:0x7f80

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:89 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

And the ifcfg-eth0 has this in it:
DEVICE="eth0"
IPADDR="63.229.139.217"
NETMASK="255.255.255.248"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

There was no ifcfg-eth0:0 file so I made one that had the second IP and
rebooted.  The ifcfg-eth0:0 I made looks like this:

DEVICE="eth0:0"
IPADDR="63.229.139.218"
NETMASK="255.255.255.248"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"


Any Ideas?  I'm using Mandrake 6.1 and an older kernel 2.2.13



Bob Miller wrote:

> [EMAIL PROTECTED] wrote:
>
> >   No it's not the title to a romance novel, I'm trying to set up my
> > linux box to two new IP's 63.229.139.217 and 63.229.139.218 I can ping
> > 217 but not the 218. In the past we've used IP's that weren't one right
> > after the other, and I don't remember why.  Is there a problem with
> > having 1 nic card assigned 2 IP #'s that are congruent?  I'm using the
> > linuxconfig tool that seems to be working correctly for changing the
> > actual conf files but have always set up the name server info at install
> > in the past.  Any ideas on how to get the nic set to these two new IP
> > #'s?
>
> Yes, it should work.  I've had as many as six adjacent IP addresses on
> jogger-egg.com.  The first one is interface eth0.  The second is
> eth0:0, the third is eth0:1, and so on.
>
> I don't know nuthin' about linuxconf.  I do it by editing the scripts
> in /etc/sysconfig/network-scripts.  For example, I have this in
> /etc/sysconfig/network-scripts/ifcfg-eth0:0 .
>
>         DEVICE="eth0:0"
>         IPADDR="216.218.195.217"
>         NETMASK="255.255.255.240"
>         NETWORK=216.218.195.208
>         BROADCAST=216.218.195.223
>         ONBOOT="yes"
>         BOOTPROTO="none"
>
> After restarting the network (/etc/rc.d/init.d/network restart), the
> ifconfig command shows both eth0 and eth0:0 interfaces, with their two
> different IP addresses.
>
> It sounds like ifconfig is your first debugging tool -- what does it
> show?
>
> And, BTW, I saw something somewhere (sorry for the imprecise reference
> (-: ) about the colon-interfaces being deprecated in the 2.4 kernel.
> --
>                                         K<bob>
> [EMAIL PROTECTED], http://www.jogger-egg.com/

Reply via email to