J Sloan wrote
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
But that still doesn't solve the problem: Having eth0:0 allows to add a special routing entry for that virtual device, just adding a second IP to eth0 does not. So this doesn't really help.
they *do* show up in the ifconfig output. As one poster mentioned, look
They don't do here:
galois home/fst# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0A:5E:02:9B:39
inet addr:141.84.1.30 Bcast:141.84.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2263 errors:0 dropped:0 overruns:0 frame:0
TX packets:2203 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:418308 (408.5 Kb) TX bytes:357885 (349.4 Kb)
Interrupt:169
galois home/fst# ip a
1: eth0: