1748080 Members
5236 Online
108758 Solutions
New Discussion юеВ

IP alias

 
gany59
Regular Advisor

IP alias

Hi All,

I have gone through the forumn for ip alias and found the below entries for the temporary settings.
ifconfig lan0:0 netmask
ifconfig lan0:1 <2nd IP Address> netmask

what is the difference between netmask and subnet mask. Is netmask is called the broad casting address.
5 REPLIES 5
Larry Klasmier
Honored Contributor

Re: IP alias

In the command above netmask is flag on the command to specify the subnetmask. Refer the man page for ifconfig.
Torsten.
Acclaimed Contributor

Re: IP alias

"netmask" is the keyword here, is the value, e.g.

ifconfig ... netmask 255.255.255.0

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
gany59
Regular Advisor

Re: IP alias

so the command syntax will be like :

ifconfig 10.10.1.1 netmask 255.255.255.0 right?

Torsten.
Acclaimed Contributor

Re: IP alias

Something like

ifconfig lan1:1 10.10.1.1 netmask 255.255.255.0


but make sure to choose another subnet compared to other NICs in this server.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
gany59
Regular Advisor

Re: IP alias

Thanks a lot folks!!!