2 ip-addr for 1 netcard...
Dirk-Willem van Gulik
dirkx at webweaving.org
Mon Dec 15 04:35:40 PST 2003
On Mon, 15 Dec 2003, flux wrote:
> How do I assign two IP addresses for one netcard?
Just use the command 'man ifconfig' and check out the section
on 'alias'. In general it is somethign like
vi /etc/rc.conf
and near
ifconfig_rl0="10.11.0.2/24"
add things like
ifconfig_rl0_alias0="10.11.0.66/32"
ifconfig_rl0_alias1="10.11.0.67/32"
ifconfig_rl0_alias2="10.11.10.1/24"
The manual equivalent is:
ifconfig fxp0 alias 1.2.3.4 netmask 255.255.255.255
to add an extra IP to the intel fxp0 card with IP address 1.2.3.4 which
must be inside the currently assigned netmask for that interface or
ifconfig fxp0 alias 1.2.5.4 netmask 255.255.255.0
to assign a second IP and submask.
Dw
More information about the freebsd-questions
mailing list