March 21, 2010
Tip of the Trade: Assign Multiple Addresses to a Network Interface
![]() |
# ip addr add 192.168.1.10/24 brd + dev eth0 # ip addr add 192.168.2.10/24 brd + dev eth0 |
brd + means "automatically set the broadcast address." View the results with this command:
$ ip addr show eth0 2: eth0: |
If you run ifconfig to check your addresses, it will see only the first one.
This is a great way to get access to multiple subnets without having to create a herd of new configurations, or install multiple network interface cards. Another practical use for this is accessing a new server or router for the first time. Typically, these come with a default IP address. If it's on a different subnet, but on the same switch, you can quickly add a compatible address to your workstation and log in to the new device. When you're finished, remove the unwanted addresses like so:
# ip addr del 192.168.3.10/24 dev eth0 |
man ip is the best and most complete reference.
Networking Solutions
- 1 Linux Server Management Nightmare: Attack of the Killer Penguins
- 2 Top 10 Open-Source Server Technologies You Need to Know
- 3 10 Coolest Features in Windows Server 2008
- 4 Getting Started With EFT Server -- A More Secure FTP Server Option
- 5 Making Linux Server Directories More Readable, Add to Perl's @INC Array





Windows Server 2008 R2 provides enhanced management control over resources across the enterprise. Downlaod this PDF to learn more.