Date: Wed, 20 Feb 2002 11:39:51 +0200 From: "Patrick O'Reilly" <patrick@mip.co.za> To: "FreeBSD Question List" <freebsd-questions@freebsd.org> Subject: ifconfig - aliasing and PPP links Message-ID: <NDBBIMKICMDGDMNOOCAIGEAIECAA.patrick@mip.co.za>
next in thread | raw e-mail | index | archive | help
A question to the network experts out there:
Background:
I have a FreeBSD gateway server with some on-board X.21 cards, and some
NICs.
I need to prepare for changing one of the PointToPoint serial links from
a private IP subnet to a public IP subnet, and the public subnet will be
a /29 (the customer needs some addresses for static NAT on the router
device at the other end).
Here is ifconfig as it stands:
-------------------------------------
# ifconfig hdlc3
hdlc3: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 192.168.254.1 --> 192.168.254.2 netmask 0xfffffffc
#
-------------------------------------
My plan is to do:
-------------------------------------
# ifconfig hdlc3 x.y.z.153 x.y.z.154 subnet 255.255.255.248 alias
# ifconfig hdlc3
hdlc3: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 192.168.254.1 --> 192.168.254.2 netmask 0xfffffffc
inet x.y.z.153 --> x.y.z.154 netmask 0xfffffff8
#
-------------------------------------
This way the interface should be able to handle the current as well as
the future configuration. I'll remove the private IP subnet once the
changeover has been successful.
Well - that's my plan anyway.
So, to the questions:
1) Can I use a /29 subnet on a PPP link? (the hdlc3 device uses the sppp
pseudo-device driver)
2) Am I correct in believing that the interface should work either way
if I add the alias as described above?
Thanks in advance.
Regards,
Patrick.
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?NDBBIMKICMDGDMNOOCAIGEAIECAA.patrick>
