Solaris virtual interfaces

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: In this example, I create virtual interface '''bge0:1''' with hostname ''host'' and IP 10.209.173.48. The interface is also configured to initialize after reboots. The /24 netmask for thi...)
Line 11: Line 11:
10.209.173.48 ''host''
10.209.173.48 ''host''
-
Add the following entry to ''/etc/hostname.bge0:1'' for the interface to initialize after reboots.
+
Add the following entry to ''/etc/hostname.bge0:1'' for the interface to initialize after a reboot.
''host''
''host''

Revision as of 14:40, 19 March 2008

In this example, I create virtual interface bge0:1 with hostname host and IP 10.209.173.48. The interface is also configured to initialize after reboots.

The /24 netmask for this network already exists in /etc/netmasks:

10.209.173.0    255.255.255.0
# ifconfig bge0:1 plumb
# ifconfig bge0:1 10.209.173.48 netmask + broadcast +
Setting netmask of bge0:1 to 255.255.255.0

Add the following to /etc/hosts:

10.209.173.48 host

Add the following entry to /etc/hostname.bge0:1 for the interface to initialize after a reboot.

host

Links

Personal tools