Subject : ÇÑ physical interface »ó¿¡¼ multiple IP ÇÒ´ç Description : 1.SYNOPSIS: Configuring multiple IP addresses on one physical interface 2. DETAIL DESCRIPTION: With Solaris 2.5 it is possible to configure multiple IP addresses for a single physical interface. This allows a machine with a single ethernet card to appear as an entire network of different machines. 3. SOLUTION SUMMARY: In order to configure the lance ethernet (le0) device to support more than one ip address, do the following: 1. Create entries in /etc/hosts for each hostname your physical machine will appear as. 128.195.10.31 myhost 128.195.10.46 myhost2 128.195.10.78 myhost3 2. Create /etc/hostname.le0:n files that contain the hostname for the virtual host n. Note that hostname.le0:0 is the same as hostname.le0 /etc/hostname.le0 (Contains name myhost) /etc/hostname.le0:1 (Contains name myhost2) /etc/hostname.le0:2 (Contains name myhost3) The above changes will cause the virtual hosts to be configured at boot time. You can also directly enable/modify a logical hosts configuration by running ifconfig directly on one of the logical hosts by using the le0:n naming scheme. % ifconfig le0:1 up % ifconfig le0:1 129.153.76.72 % ifconfig le0:1 down Example) 1. Add hosts in /etc/hosts 203.240.159.35 hyundai3.svc.hei.co.kr hyundai3 loghost mailhost 203.240.159.251 hyundai31.svc.hei.co.kr hyundai31 203.240.159.252 hyundai32.svc.hei.co.kr hyundai32 203.240.159.36 mymy 203.240.159.42 ultima 203.240.159.37 atom 203.240.159.38 roche 203.240.159.99 pc 203.240.159.39 queen 203.240.159.40 ysuny 203.240.159.50 congo 2. Create /etc/hostname.le0:1, /etc/hostname.le0:2 hyundai3# more /etc/hostname.le0* /etc/hostname.le0 hyundai3 /etc/hostname.le0:1 hyundai31 /etc/hostname.le0:2 3. Reboot or Use ifconfig hyundai3# ifconfig le0:1 up hyundai3# ifconfig -a lo0: flags=849mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.240.159.35 netmask ffffff00 broadcast 203.240.159.255 ether 0:0:3b:80:17:dc le0:1: flags=843 mtu 1500 inet 0.0.0.0 netmask 0 hyundai3# ifconfig le0:1 203.240.159.251 hyundai3# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.240.159.35 netmask ffffff00 broadcast 203.240.159.255 ether 0:0:3b:80:17:dc le0:1: flags=843 mtu 1500 inet 203.240.159.251 netmask ffffff00 broadcast 203.240.159.255 hyundai3# ifconfig le0:2 up hyundai3# ifconfig le0:2 203.240.159.252 hyundai3# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.240.159.35 netmask ffffff00 broadcast 203.240.159.255 ether 0:0:3b:80:17:dc le0:1: flags=843 mtu 1500 inet 203.240.159.251 netmask ffffff00 broadcast 203.240.159.255 le0:2: flags=843 mtu 1500 inet 203.240.159.252 netmask ffffff00 broadcast 203.240.159.255 hyundai3# hyundai3# 4. Check ping hyundai3# ping hyundai32 hyundai32.svc.hei.co.kr is alive hyundai3# ping hyundai31 hyundai31.svc.hei.co.kr is alive Revision History ÀÛ¼ºÀÏÀÚ : 96.09.05 ÀÛ¼ºÀÚ : À̽ÂÈÆ ¼öÁ¤ÀÏÀÚ : ¼öÁ¤ÀÚ :