VLAN

From Hack Sphere Labs Wiki
Revision as of 18:23, 4 August 2012 by Webdawg (talk | contribs) (Created page with "# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface au...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  1. This file describes the network interfaces available on your system
  2. and how to activate them. For more information, see interfaces(5).
  1. The loopback network interface

auto lo iface lo inet loopback

  1. The primary network interface
  1. Config With VLANS
  1. ETHERNET

auto eth0 iface eth0 inet manual

  1. ETHERNET VLANS
  1. VLAN 20 - INTERNAL

iface eth0.20 inet manual

       vlan_raw_device eth0
  1. VLAN 10 - NORMAL

iface eth0.10 inet manual

       vlan_raw_device eth0
  1. VLAN 30 - DMZ

iface eth0.30 inet manual

       vlan_raw_device eth0
  1. BRING UP INTERFACES
  1. VLAN 20 - INTERNAL

auto xenbr0 iface xenbr0 inet static

      bridge_ports eth0.20
      address 10.0.0.10
      netmask 255.255.255.0
      network 10.0.0.0
      broadcast 10.0.0.255
      gateway 10.0.0.1
      # dns-* options are implemented by the resolvconf package, if installed
      dns-nameservers 10.0.0.1
  1. VLAN 10 - NORMAL

auto xenbr1 iface xenbr1 inet manual

       bridge_ports eth0.10
  1. VLAN 30 - DMZ

auto xenbr2 iface xenbr2 inet manual

       bridge_ports eth0.30