[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) |
Notice: | Welcome to the Digital UNIX Conference |
Moderator: | SMURF::DENHAM |
|
Created: | Thu Mar 16 1995 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 10068 |
Total number of notes: | 35879 |
Hi!
I have a customer running dunix 3.2c and one running 3.2g. They are both
running into the same problem with ip aliasing whereby only the last alias
mentioned in the rc.config is the one being recognized. If we manually
setup three different aliases using the ifconfig command then all three
aliased
addresses can be pinged. But if we put these into the IFCONFIG_0 line in the
/etc/rc.config file (either manually or using the netsetup script) so that
they will be automatcially configured upon a reboot, only the last alias
mentioned can be pinged and ultimately, only this last one works.
As of version 4.0 there is an additional paramater for ifconfig called
'aliaslist'. Does this imply that versions prior to 4.0 cannot support more
than one alias per interface?
Following is a transcript of a netsetup session, a copy of the rc.config file
and the output of a netstat -i for the 3.2c machine. I have tried this on a
3.2g system with the exact same results.
root: centurion.chemex.ca [47] % netsetup
**** MAIN MENU ****
1 Configure Network Interfaces
2 Enable/Disable Network Daemons and Add Static Routes
3 Add/Delete Host Information
4 Display Network Configuration
5 Exit
Enter the number for your choice: 1***** CONFIGURE/DELETE NETWORK INTERFACES
*****
You can configure or delete network interfaces. Configuration
information
is updated in /etc/rc.config and /etc/hosts. Choose "configure" or
"delete"
at the prompt.
Enter whether you want to "(c)onfigure" or "(d)elete" network
interfaces.
If you are finished, press the RETURN key: c
You want to "configure" interfaces. Is this correct [yes]?
You will now be asked a series of questions about the system.
Default answers are shown in square brackets ([]). To use a
default answer, press the RETURN key.
This machine contains the following network interfaces:
tu0Which interface do you want to configure [tu0]: tu0
You want to configure "tu0". Is this correct [yes]? yes
Interface "tu0" is already configured.
Do you want to reconfigure it [no]? yes
The hostname for the system is "centurion.chemex.ca".
Is this correct [yes]?
The IP address for interface "tu0" is "204.50.94.1".
Is this correct [yes]?
Subnetworks allow the systems on a local area network to be on different
physical networks. For the following question, use the default answer
unless the existing local area network is using subnet routing.
If the local area network is using subnet routing, you need to know
the subnet mask.
The subnet mask for "tu0" is "255.255.255.0".
Is this correct [yes]?For the following question USE THE DEFAULT ANSWER unless
you would like
to add additional flags (found in the ifconfig reference page) to the
ifconfig command. Normally, you will USE THE DEFAULT ANSWER.
The ifconfig flags for "tu0" are "alias 204.50.94.2 alias 204.50.94.3
alias 204.50.94.4".
Is this correct [yes]?
The configuration looks like:
system hostname: "centurion.chemex.ca"
ifconfig tu0 204.50.94.1 netmask 255.255.255.0 alias 204.50.94.2
alias 204.50.94.3 alias 204.50.94.4
Is this correct [yes]?
***** UPDATING /etc/rc.config *****
"tu0" is configured in /etc/rc.config***** DELETING OLD "tu0" CONFIGURATION
*****
/sbin/ifconfig tu0 delete
tu0: delete inet address 204.50.94.1
tu0: delete inet address 204.50.94.2
tu0: delete inet address 204.50.94.10
***** CONFIGURING "tu0" *****
/sbin/ifconfig tu0 204.50.94.1 netmask 255.255.255.0 alias
204.50.94.2 alias 204.50.94.3 alias 204.50.94.4 up
Do you want to configure another network interface [yes]? no
Enter whether you want to "(c)onfigure" or "(d)elete" network
interfaces.
If you are finished, press the RETURN key:
**** MAIN MENU ****
1 Configure Network Interfaces
2 Enable/Disable Network Daemons and Add Static Routes
3 Add/Delete Host Information
4 Display Network Configuration
5 Exit
Enter the number for your choice: 5
To perform additional tasks in setting up the network, see the Network
Configuration reference. For the netsetup modifications to take
effect, either restart the network services on this system with the
following command:
/usr/sbin/rcinet restart
or reboot this system with the following command:
/usr/sbin/shutdown -r now
NOTE: If you are going to use the '/usr/sbin/rcinet restart' command,
warn the users that the network services on this system are going
to be restarted. Also, any NFS filesystems not mounted via fstab
or
automount will not be remounted.
Do you want netsetup to automatically restart the network
services on this system [no]?
Restart the network services on this system using
one of the commands listed above when you are ready.
***** NETWORK SETUP COMPLETE *****
root: centurion.chemex.ca [48] %
As you can see, I'm trying to add the aliases for 204.50.94.2,
204.50.94.3 and 204.50.94.4. Here's a look at the new rc.config file:
root: centurion.chemex.ca [48] % more rc.config
#!/bin/sh
#
# *****************************************************************
# * *
# * Copyright (c) Digital Equipment Corporation, 1991, 1995 *
# * *
# * All Rights Reserved. Unpublished rights reserved under *
# * the copyright laws of the United States. *
# * *
# * The software contained on this media is proprietary to *
# * and embodies the confidential technology of Digital *
# * Equipment Corporation. Possession, use, duplication or *
# * dissemination of the software and media is authorized only *
# * pursuant to a valid written license from Digital Equipment *
# * Corporation. *
# * *
# * RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure *
# * by the U.S. Government is subject to restrictions as set *
# * forth in Subparagraph (c)(1)(ii) of DFARS 252.227-7013, *
# * or in FAR 52.227-19, as applicable. *
# * *
# *****************************************************************
#
# HISTORY
#
# @(#)$RCSfile: rc.config,v $ $Revision: 4.2.3.8 $ (DEC) $Date:
1992/11/24 16:41:43 $
#
# The variables set by the netsetup program that are required for
network
# configuration are as follows:# HOSTNAME - host name of the system
#
# NUM_NETCONFIG - number of network devices currently configured
#
# MAX_NETDEVS - maximum number of network devices that can be configured
# which is currently set by netsetup to a value of 16
#
# NETDEV_n - network device name for network devices currently
# configured, where n is 0 to MAX_NETDEVS - 1
# for example, NETDEV_0="ln0"
#
# IFCONFIG_n - ifconfig parameters for network devices currently
# configured, where n is 0 to MAX_NETDEVS - 1
# (see ifconfig(8) manual page)
# for example, IFCONFIG_0="130.124.1.20 netmask
255.255.255.0"
#
# RWHOD - "yes" if rwhod is enabled, blank or "no" if rwhodisabled
#
# ROUTED_FLAGS - routed flags (see routed(8) manual page)
#
# ROUTER - "yes" if the system is set up to be an Internet Protocol
router,
# otherwise, blank or "no"
#
# GATED - "yes" if gated is enabled, blank or "no" if gated is disabled
#
# GATED_FLAGS - gated flags (see gated(8) manual page)
#
DISPLAYTYPE=
HOSTNAME="centurion.chemex.ca"
NUM_NETCONFIG="1"
MAX_NETDEVS="24"
NETDEV_0="tu0"
NETDEV_1=
NETDEV_2=NETDEV_4=
NETDEV_5=
NETDEV_6=
NETDEV_7=
IFCONFIG_0="204.50.94.1 netmask 255.255.255.0 alias 204.50.94.2 alias
204.50.94.3 alias 204.50.94.4"
IFCONFIG_1=
IFCONFIG_2=
IFCONFIG_3=
IFCONFIG_4=
IFCONFIG_5=
IFCONFIG_6=
IFCONFIG_7=
RWHOD="yes"
ROUTED="no"
ROUTED_FLAGS=
ROUTER="no"
GATED="no"
GATED_FLAGS=PAGEFILE="/dev/rz0b"
PARTITION="rz0b"
PARTITIONTYPE="RZ26L"
PAGEMINSZ=0
PAGEMAXSZ=0
QUOTA_CONFIG=
export DISPLAYTYPE HOSTNAME NUM_NETCONFIG QUOTA_CONFIG
export NETDEV_0 NETDEV_1 NETDEV_2 NETDEV_3 NETDEV_4 NETDEV_5 NETDEV_6
NETDEV_7
export IFCONFIG_0 IFCONFIG_1 IFCONFIG_2 IFCONFIG_3 IFCONFIG_4 IFCONFIG_5
export IFCONFIG_6 IFCONFIG_7 RWHOD ROUTED ROUTED_FLAGS GATED GATED_FLAGS
export ROUTER MAX_NETDEVS
export PAGERAW PAGEFILE PARTITION PARTITIONTYPE PAGEMINSZ PAGEMAXSZ
LAT_SETUP="1"
export LAT_SETUP
BIND_CONF="YES"
export BIND_CONF
BIND_SERVERTYPE="SECONDARY"
export BIND_SERVERTYPE
BIND_SERVERARGS="-b /etc/namedb/named.boot"export BIND_SERVERARGS
MAIL_CONF="YES"
export MAIL_CONF
XNTPD_CONF="YES"
export XNTPD_CONF
XNTP_SERV1="clock.tricity.wsu.edu"
export XNTP_SERV1
XNTP_SERV2="delphi.cs.ucla.edu"
export XNTP_SERV2
XNTP_SERV3="clepsydra.dec.com"
export XNTP_SERV3
XNTPD_OPTS=""
export XNTPD_OPTS
root: centurion.chemex.ca [49] %Okay, let's see if I can now log on and ping
them...
root: centurion.chemex.ca [42] % ping 204.50.94.1
PING 204.50.94.1 (204.50.94.1): 56 data bytes
64 bytes from 204.50.94.1: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 204.50.94.1: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 204.50.94.1: icmp_seq=2 ttl=255 time=0 ms
----204.50.94.1 PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0 ms
root: centurion.chemex.ca [43] % ping 204.50.94.2
PING 204.50.94.2 (204.50.94.2): 56 data bytes
----204.50.94.2 PING Statistics----
4 packets transmitted, 0 packets received, 100% packet loss
root: centurion.chemex.ca [44] % ping 204.50.94.3
PING 204.50.94.3 (204.50.94.3): 56 data bytes
----204.50.94.3 PING Statistics----
4 packets transmitted, 0 packets received, 100% packet loss
root: centurion.chemex.ca [45] % ping 204.50.94.4
PING 204.50.94.4 (204.50.94.4): 56 data bytes
64 bytes from 204.50.94.1: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 204.50.94.1: icmp_seq=1 ttl=255 time=0 ms
64 bytes from 204.50.94.1: icmp_seq=2 ttl=255 time=0 ms
64 bytes from 204.50.94.1: icmp_seq=3 ttl=255 time=0 ms
----204.50.94.4 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0 msroot: centurion.chemex.ca [46] %
Only the last alias works... the .2 and .3 don't work...
Here's the netstat -i:
root: centurion.chemex.ca [41] % netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs
Coll
tu0 1500 DLI none 1096 0 1047 0
0
tu0 1500 <Link> 08:00:2b:e5:8d:63 1096 0 1047 0
0
tu0 1500 204.50.94 centurion 1096 0 1047 0
0
sl0* 296 <Link> 0 0 0 0
0
lo0 1536 <Link> 161 0 161 0
0
lo0 1536 loop localhost 161 0 161 0
0
root: centurion.chemex.ca [42] %
The customer who is running 3.2g has taken it upon himself to modify the
/sbin/init.d/inet script to tell it to search for additional aliases and this
script is working well for him, but of course, it is not supported, nor can
i distritbute this to additional customers. Does such a scrip exist that
would
be considered "official" from Digital that i could give to customers or is
this
simply not something that is supported prior to v4.0?
Thanks for any help in advance.
kim
[Posted by WWW Notes gateway]
T.R | Title | User | Personal Name | Date | Lines |
---|
9982.1 | | KITCHE::schott | Eric R. Schott USG Product Management | Thu May 29 1997 21:56 | 4 |
| Hi
I don't think you setup aliases via rc.config...you enable interfaces...
|
9982.2 | | SMURF::AJAY | | Tue Jun 03 1997 18:07 | 17 |
| See inet.local (8) man page -- but it's available on V4.0+ only.
I have seen some site use the following content in rc.config:
i.e. configure ln0 with primary address 204.123.2.2 and 3 aliases
address 204.123.2.3, 204.123.2.4, and 204.123.2.49:
NETDEV_1="ln0"
NETDEV_2="ln0"
NETDEV_3="ln0"
NETDEV_4="ln0"
IFCONFIG_1="204.123.2.2 netmask 255.255.255.0"
IFCONFIG_2="alias 204.123.2.3"
IFCONFIG_3="alias 204.123.2.4"
IFCONFIG_4="alias 204.123.2.49"
|