multiple ip's?

shrek-m at gmx.de shrek-m at gmx.de
Tue May 18 12:37:04 UTC 2004


Bill Schoolcraft wrote:

>>cp ifcfg-eth0 ifcfg-eth0:1
>>#copy ifcfg-eth0(configuration file for eth0) to ifcfg-eth0:1(first alias)
>>    
>>
>Hmm, I know on Solaris the first alias starts at :1 but I recall doing my first
>alias for Linux on eth0:0, is that still the case currently?
>

sure,

# ifconfig eth0:0 1.2.3.4
# ifconfig eth0:1 2.3.4.5

# ifconfig eth0:0
eth0:0    Protokoll:Ethernet  Hardware Adresse 00:50:BA:1D:6D:BF
          inet Adresse:1.2.3.4  Bcast:1.255.255.255  Maske:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:5 Basisadresse:0xc000
 
# ifconfig eth0:1
eth0:1    Protokoll:Ethernet  Hardware Adresse 00:50:BA:1D:6D:BF
          inet Adresse:2.3.4.5  Bcast:2.255.255.255  Maske:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:5 Basisadresse:0xc000



# ping -c2 1.2.3.4
PING 1.2.3.4 (1.2.3.4) 56(84) bytes of data.
64 bytes from 1.2.3.4: icmp_seq=0 ttl=64 time=0.042 ms
64 bytes from 1.2.3.4: icmp_seq=1 ttl=64 time=0.042 ms
 
--- 1.2.3.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.042/0.042/0.042/0.000 ms, pipe 2


# ping -c2 2.3.4.5
PING 2.3.4.5 (2.3.4.5) 56(84) bytes of data.
64 bytes from 2.3.4.5: icmp_seq=0 ttl=64 time=0.042 ms
64 bytes from 2.3.4.5: icmp_seq=1 ttl=64 time=0.040 ms
 
--- 2.3.4.5 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.040/0.041/0.042/0.001 ms, pipe 2


-- 
shrek-m





More information about the fedora-list mailing list