You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  • vi /etc/sysconfig/network-scripts/ifcfg-eth0:5
    DEVICE=eth0:5
    BOOTPROTO=none
    STARTMODE=onboot
    USERCTL=no
    IPADDR=172.53.0.1
    BROADCAST=172.53.0.255
    NETMASK=255.255.255.0
    ONBOOT=yes
    
  • vi /etc/hosts
    127.0.0.1 localhost
    127.0.0.2 localvmhost
    172.53.0.11 vmguest1
    
  • vi /etc/dhcpd.conf
    ddns-update-style interim;
    ignore client-updates;
    
    shared-network eth0 {
       subnet 10.0.0.0 netmask 255.0.0.0 {
          # no dhcp support available
          # we are not authoritative for this network
          not authoritative;
       }
       subnet 172.53.0.0 netmask 255.255.255.0 {
          range 172.53.0.10 172.53.0.244;
          authoritative;
          max-lease-time 43200;
          min-lease-time 43200;
          default-lease-time 43200;
          option routers 172.53.0.1;
          option subnet-mask 255.255.255.0;
          option nis-domain "NA";
          option domain-name "vcl.org";
          option domain-name-servers 172.52.0.1;
          option nis-servers noip;
          option time-offset -5;
          ignore unknown-clients;
         
          host vmguest1 {
             option host-name "vmguest1";
             hardware ethernet 00:50:56:06:FF:00;
             fixed-address 172.53.0.11;
             option dhcp-server-identifier 172.53.0.1;
          }
       }
    }
    
  •  
  • No labels