Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2001 06:18:21 +0200
From:      Vikash Badal / PCS <VikashB@ComparexAfrica.co.za>
To:        'Sven Brandenburg' <sven@crashme.org>, freebsd-questions@FreeBSD.ORG
Subject:   RE: 2 ip adresses on 1 interface
Message-ID:  <501BF453CDCFD111A6E40080C83DAC04E4BB1D@PSICS001>

next in thread | raw e-mail | index | archive | help
Hi,
>>>inet 212.68.64.136 netmask 0xffffff00 broadcast 212.68.64.255
the netmask should be 0xffffffff

-----Original Message-----
From: Sven Brandenburg [mailto:sven@crashme.org]
Sent: 26 November 2001 10:08
To: freebsd-questions@FreeBSD.ORG
Subject: 2 ip adresses on 1 interface


Hullo :-)

I may be plain stupid but iirc this used to work :
---
bash-2.04# ifconfig xl0
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 212.68.64.165 netmask 0xffffff00 broadcast 212.68.64.255
        inet6 fe80::250:4ff:fe66:fbf0%xl0 prefixlen 64 scopeid 0x1 
        ether 00:50:04:66:fb:f0 
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
bash-2.04# ifconfig xl0 212.68.64.136 alias 
bash-2.04# ifconfig xl0
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 212.68.64.165 netmask 0xffffff00 broadcast 212.68.64.255
        inet6 fe80::250:4ff:fe66:fbf0%xl0 prefixlen 64 scopeid 0x1 
        inet 212.68.64.136 netmask 0xffffff00 broadcast 212.68.64.255
        ether 00:50:04:66:fb:f0 
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
bash-2.04# ping  212.68.64.136
PING 212.68.64.136 (212.68.64.136): 56 data bytes
^C
--- 212.68.64.136 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
bash-2.04# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
[..snip..]
212.68.64          link#1             UC         12        0    xl0
212.68.64.136      link#1             UHLW        0        2    xl0
---

i dont know what im missing here - please help me out, looks like i am
blinded somehow, the idea is just to add another ip address to the
interface xl0 in the same /24 v4 subnet - nothing fancy at all.

regards :-)
Sven Brandenburg


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?501BF453CDCFD111A6E40080C83DAC04E4BB1D>