* Second IP address for one interface.
@ 1999-01-07 5:00 jasperh
1999-01-07 5:00 ` Jure Simsic
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: jasperh @ 1999-01-07 5:00 UTC (permalink / raw)
Hi,
I have configured a second IP for my Dec Alpha with one network interface
by changing /etc/rc.config in the following way:
NUM_NETCONFIG="2"
NETDEV_0="tu0"
NETDEV_1="tu0"
IFCONFIG_0="aaa.bbb.ccc.ddd netmask 255.255.255.0"
IFCONFIG_1="alias aaa.bbb.eee.ggg netmask 255.255.255.0"
After rebooting, netstat shows that the new address is up and ok,
(gateway is also aaa.bbb.eee.ggg), but other hosts on the network do not
see the new address.
This host is also the DNS server. I have not included the "aaa.bbb.eee.ggg"
information into the DNS database. May this be a problem??
Any idea please ??
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Second IP address for one interface.
1999-01-07 5:00 Second IP address for one interface jasperh
@ 1999-01-07 5:00 ` Jure Simsic
1999-01-11 5:00 ` Hannes Wenzel
1999-01-11 5:00 ` ivan.dolezal
2 siblings, 0 replies; 4+ messages in thread
From: Jure Simsic @ 1999-01-07 5:00 UTC (permalink / raw)
jasperh wrote:
>
> Hi,
>
> I have configured a second IP for my Dec Alpha with one network interface
> by changing /etc/rc.config in the following way:
>
> NUM_NETCONFIG="2"
> NETDEV_0="tu0"
> NETDEV_1="tu0"
> IFCONFIG_0="aaa.bbb.ccc.ddd netmask 255.255.255.0"
> IFCONFIG_1="alias aaa.bbb.eee.ggg netmask 255.255.255.0"
>
> After rebooting, netstat shows that the new address is up and ok,
> (gateway is also aaa.bbb.eee.ggg), but other hosts on the network do not
> see the new address.
> This host is also the DNS server. I have not included the "aaa.bbb.eee.ggg"
> information into the DNS database. May this be a problem??
>
> Any idea please ??
> Thanks.
I think you should put it in the same ifconfig line (=ifconf_0="a.b.c.d
netmask-x.x.x.x alias a.b.c.e") And for 255.255.255.0 i don't think you
have to specify the netmask anyway..
What you're actually doing here is assigning another address to the same
interace, not the second one..IFCONFIG_0 is meant for if0, IFCONFIG_1
for if1...
Jure
--
Jure Simsic
email: jure.simsic@uni-lj.si
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Second IP address for one interface.
1999-01-07 5:00 Second IP address for one interface jasperh
1999-01-07 5:00 ` Jure Simsic
@ 1999-01-11 5:00 ` Hannes Wenzel
1999-01-11 5:00 ` ivan.dolezal
2 siblings, 0 replies; 4+ messages in thread
From: Hannes Wenzel @ 1999-01-11 5:00 UTC (permalink / raw)
If you want to setup a second ip address to one interface you can't
configure it in /etc/rc.config. NETDEV_1 is the second physically
interface.
Better do it as follows:
on the command line issue the command
# ifconfig tu0 alias <ip-address> netmask 255.255.255.0
then insert a line to the file /etc/inet.local like the above command.
After issuing this command, the second address is immediately active.
The entry in /etc/inet.local is for the next boot.
In this way you can configure any number of addresses for one interface.
--
Best regards,
Han
jasperh wrote:
>
> Hi,
>
> I have configured a second IP for my Dec Alpha with one network interface
> by changing /etc/rc.config in the following way:
>
> NUM_NETCONFIG="2"
> NETDEV_0="tu0"
> NETDEV_1="tu0"
> IFCONFIG_0="aaa.bbb.ccc.ddd netmask 255.255.255.0"
> IFCONFIG_1="alias aaa.bbb.eee.ggg netmask 255.255.255.0"
>
> After rebooting, netstat shows that the new address is up and ok,
> (gateway is also aaa.bbb.eee.ggg), but other hosts on the network do not
> see the new address.
> This host is also the DNS server. I have not included the "aaa.bbb.eee.ggg"
> information into the DNS database. May this be a problem??
>
> Any idea please ??
> Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Second IP address for one interface.
1999-01-07 5:00 Second IP address for one interface jasperh
1999-01-07 5:00 ` Jure Simsic
1999-01-11 5:00 ` Hannes Wenzel
@ 1999-01-11 5:00 ` ivan.dolezal
2 siblings, 0 replies; 4+ messages in thread
From: ivan.dolezal @ 1999-01-11 5:00 UTC (permalink / raw)
Hi,
I had to deal with this on New Year's Eve.
Maybe I did something wrong with my DU4.0D but: using "alias" argument
didn't work. Modification of rc.config didn't work. Usually the whole
system hanged or it just didn't work.
After some research the only thing that worked for me was creating
/etc/rc3.d/S99_of_mine containing:
/sbin/ifconfig tu0 aliaslist a.b.c.d/e
(note that I had to use "aliaslist", not "alias" ; a.b.c.d is a new IP
address of I/F tu0, e - bitmask)
It would be interesting to know what's "the right solution". Anyway,
this works.
Ivan
jasperh wrote:
>
> Hi,
>
> I have configured a second IP for my Dec Alpha with one network interface
> by changing /etc/rc.config in the following way:
>
> NUM_NETCONFIG="2"
> NETDEV_0="tu0"
> NETDEV_1="tu0"
> IFCONFIG_0="aaa.bbb.ccc.ddd netmask 255.255.255.0"
> IFCONFIG_1="alias aaa.bbb.eee.ggg netmask 255.255.255.0"
>
> After rebooting, netstat shows that the new address is up and ok,
> (gateway is also aaa.bbb.eee.ggg), but other hosts on the network do not
> see the new address.
> This host is also the DNS server. I have not included the "aaa.bbb.eee.ggg"
> information into the DNS database. May this be a problem??
>
> Any idea please ??
> Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-01-11 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-07 5:00 Second IP address for one interface jasperh
1999-01-07 5:00 ` Jure Simsic
1999-01-11 5:00 ` Hannes Wenzel
1999-01-11 5:00 ` ivan.dolezal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox