Red Hat ENTERPRISE LINUX 5 - VIRTUALIZATION GUIDE Instalační příručka Strana 149

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 361
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 148
range=10.1.1.10,10.1.1.50,255.255.255.0,12h
Modify dhcp-option to override the default route supplied by dnsmasq, which assumes the
router is the same machine as the one running dnsmasq. An example would be dhcp-
option=3,10.1.1.1
After configuring dnsmasq you can copy the script below as xenDNSmasq to /etc/init.d
If you want to automatically start dnsmasq during system boot, you should register it using
chkconfig(8):
chkconfig --add xenDNSmasq
Enable it for automatic startup:
chkconfig --levels 345 xenDNSmasq on
To configure dnsmasq to restart every time Net workMan ag er detects a change in connectivity
you can use the supplied script nm-dnsmasq.
Copy the nm-dnsmasq script to /etc/NetworkManager/dispatcher.d/
The Net wo rkMan ag er dispatcher will execute the script (in alphabetical order if you have
other scripts in the same directory) every time there is a change in connectivity.
dnsmasq will also detect changes in your /etc/resolv.conf and automatically reload them (if
you start up a VPN session, for example).
Both the nm-dnsmasq and xenDNSmasq script will also set up NAT if you have your guests on a
hidden network to allow them access to the public network.
Chapt er 1 1 . Pre- Red Hat Ent erprise Linux 5.4 Xen n et workin g
14 5
Zobrazit stránku 148
1 2 ... 144 145 146 147 148 149 150 151 152 153 154 ... 360 361

Komentáře k této Příručce

Žádné komentáře