but when I restart the network (/etc/init.d/network restart) I get the
following and I don’t get any eth0:1 interface when I do ifconfig -a.
Shutting down the NetworkManager done
Shutting down the DHCP DBUS Daemon done
Shutting down the NetworkManagerDispatcher done
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
lo
lo IP address: 127.0.0.1/8
Checking for network time protocol daemon (NTPD): doneing
eth0 device: Broadcom Corporation NetXtreme BCM5722 Gigabit Ethernet PCI Express
eth0 IP address: 203.10.1.21/24
eth0:zeus IP address: 203.10.1.21/24
Checking for network time protocol daemon (NTPD): doneing
Setting up service network . . . . . . . . . . . . . . done
In 11.0 YaST there is a panel for assigning alias addresses for the interface. I don’t run 10.3 anymore, but I doubt that it is really impossible via YaST.
Ok, I looked at a remote 10.1 server with ncurses yast, and it’s under Network Devices > Network Card > Edit > Advanced > Additional Addresses. IIRC the same in 10.3.
Now when I restart the network (service network restart) I can see vlan3. But still cannot ping or ssh to that IP address from outside. Although I can ssh to this IP from the box itself. So, I’m guessing it’s a routing table issue.
But my problem was that I was trying to assign an IP address to the virtual interface (vif) from a different subnet. This will never work as the server’s physical network interface is connected to another subnet. So, if you ping the vif’s IP from outside, it won’t respond as data link layer would not know where to find that IP.
Anyhow, I solved the problem just by assigning an IP from the same subnet as my physical interface.