Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google site




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-21-2005
RTM's Avatar
RTM RTM is offline Forum Advisor  
Registered User
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,061
See the man page on ifconfig for more info.

(As an example, I'm using hme0 - your interface may be different)

You can set up a logical/virtual interface by setting the IP or a hostname in a /etc/hostname.hme0:1. If you use a hostname, it has to be in /etc/hosts. And you can either reboot or use the ifconfig command to set up the logical/virtual interface.

ifconfig plumb hme0:1 inet 172.16.1.2 netmask 255.255.255.0 broadcast 172.16.1.0 up