Carl-Daniel Hailfinger wrote:
> Kenneth Schneider wrote:
>> The above example will work _if_ you keep the numbers in the same
>> subnet. To use different subnets on the same PC use different physical
>> devices or you will have nothing but problems with routing.
> 
> I never had problems with multiple disjoint subnets on one interface,
> but that may be due to using ip instead of ifconfig. ifconfig has
> reached its end of life. ip is much more powerful and easy to use.
> 
> For example, if you want to add an IP to an interface:
> # ip address add 172.16.4.3/16 broadcast 172.16.255.255 dev eth0
> Another IP to the same interface (short notation):
> # ip a a 192.168.5.7/24 brd + dev eth0
> 
> No virtual interfaces needed.

It's preferable that this be controlled by the suse init scripts rather
than ad-hoc commands, for manageability sake.

Just go to yast->network devices-> and select the interface of interest.
For that interface, go to advanced->additional addresses and enter IPs
at will, even disjoint subnets - they are all added with no problem, and
they *do* show up in the ifconfig output. As one poster mentioned, look
at the /etc/sysconfig/network/ifcfg-eth-xxx-xxx-xxx-xxx file to see the
format of the additional IPs - it's fairly straightforward.

Joe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to