Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

18.17. 랩톱 구성

The task of configuring your RHEL 5.1 loaded laptop for use on a network environment, presents a number of potential challenges. Most WiFi and wired connections switch constantly during any given day, and Red Hat Virtualization assumes it has access to the same interface consistently. This results in the system performing ifup/ifdown calls to the network interface in use by Red Hat Virtualization. WiFi cards are not the ideal network connection method since Red Hat Virtualization uses the default network interface.
The idea here is to create a 'dummy' network interface for Red Hat Virtualization to use.
This technique allows you to use a hidden IP address space for your guests and Virtual Machines. To do this operation successfully, you must use static IP addresses as DHCP does not listen for IP addresses on the dummy network. You also must configure NAT/IP masquerading to enable network access for your guests and Virtual Machines. You should attach a static IP when you create the 'dummy' network interface.
다음 예제에서 인터페이스를 dummy0라고 부르며 IP 주소로을 사용합니다. 이 스크립트는 ifcfg-dummy0이며, /etc/sysconfig/network-scripts/ 디렉토리에 위치합니다:
DEVICE =dummy0
xenbr0dummy0로 바인드하여 실제 네트워크로부터 차단될 때도 네트워크 연결을 허용해야 합니다.
You will need to make additional modifications to the xend-config.sxp file. You must locate the ( network-script 'network-bridge' bridge=xenbr0 ) section and add include this in the end of the line:
You must also make some modifications to your guest's domU networking configuration to enable the default gateway to point to dummy0. You must edit the DomU 'network' file that resides in the /etc/sysconfig/ directory to reflect the example below:
dumU가 공개 네트워크를 사용하도록 NAT를 활성화하는 것은 바람직합니다. NAT를 사용하면 무선 네트워크 사용자도 Red Hat Virtualization 무선 제한없이 네트워크를 사용할 수 있습니다. /etc/rc3.d 디렉토리안의 S99XenLaptopNAT 파일을 아래와 같이 수정하시기 바랍니다:
# XenLaptopNAT  Startup script for Xen on Laptops
# chkconfig: - 99 01
# description: Start NAT for Xen Laptops
# PATH=/usr/bin:/sbin:/bin:/usr/sbin
# export PATH
GATEWAYDEV=`ip route | grep default | awk {'print $5'}`
iptables -F
case "$1" in
if test -z "$GATEWAYDEV"; then
echo "No gateway device found"
echo "Masquerading using $GATEWAYDEV"
/sbin/iptables -t nat -A POSTROUTING -o $GATEWAYDEV -j MASQUERADE
echo "Enabling IP forwarding"
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "IP forwarding set to `cat /proc/sys/net/ipv4/ip_forward`"
echo "done."
echo "Usage: $0 {start|restart|status}"
시작 시 자동으로 네트워크 설정이 필요하면, /etc/rc3.d/S99XenLaptopNAT에 대한 소프트 링크를 생성해야 합니다.
modprobe.conf 파일을 수정할 때 다음 줄을 써넣어야 합니다:
alias dummy0 dummy
options dummy numdummies=1