DocumentsDownloadsWikiCommunityBlogAbout

/noxbox/conf/noxbox.conf

From OpenFlow Wiki

Jump to: navigation, search

You basically need to change the following parameters in accord with your environment:

PORT1_MODE=on
PORT2_MODE=debug
ON_IP_ADDR= (this will be an IP address facing to OF network)
ON_NETMASK= (netmask for ON_IP_ADDR)
PORT2_IP_ADDR= (IP address for control channel)
PORT2_NETMASK= (netmask for PORT2_IP_ADDR)
DEFAULT_GW= (default gateway for PORT2)
CONTROLLER_ADDR= (NOX controller's IP address:port#)
MAGIC_AP_BRIDGE=false
#DEFAULT_NOX= (comment out)
OPENFLOW_INTERFACES="ath0" (Don't include eth0 here. If we set PORT1_MODE=on, 
eth0 will be added automatically to OpenFlow interfaces.)

Example /noxbox/conf/noxbox.conf file:

# The first port can be configured in four different modes:
# pppoe  (for use with PPPoE)
# nat    (does NAT on whatever is upstream)
# on     (it's just another port)
# off    (same as NAT and PPPOE, but no uplink)
# dhcp   (not added to the switch -- just configured by dhcp)
# none   (it is just left alone)
PORT1_MODE=on
# Address to use for the NOX Box itself when in PPPOE, NAT, or OFF modes.
# In "on" mode, the address is specified by ON_IP_ADDR.
# You can also specify a netmask (or leave empty for the default)
#IP_ADDR=10.100.0.1
#NETMASK=255.255.255.0
# Address to use for the NOX Box when in ON mode.
# Can be an IP address or "DHCP" (the default)
#ON_IP_ADDR=dhcp
#ON_NETMASK=255.0.0.0
ON_IP_ADDR=xxx.xxx.xxx.xxx
ON_NETMASK=xxx.xxx.xxx.xxx
# PPPoE authentication information
PPPOE_USERNAME=user
PPPOE_PASSWORD=pass


# The second port can be configured in three different modes:
# on     (it's added to the openflow switch)
# off    (it is disabled)
# debug  (it's configured to a static IP address for debugging)
# none   (it is just left alone)
PORT2_MODE=debug
# Address to use when PORT2 is in debug mode
# You may also set a netmask if required
# Defaults to 172.16.172.16
#PORT2_IP_ADDR=172.16.172.16
#PORT2_NETMASK=255.0.0.0
PORT2_IP_ADDR=xxx.xxx.xxx.xxx
PORT2_NETMASK=xxx.xxx.xxx.xxx
DEFAULT_GW=xxx.xxx.xxx.xxx
# This will control the SSID used for the first wireless interface (ath0).
# Default is "NOX Box"
#WIFI_SSID="NOX Box"
WIFI_SSID="xxxx"
# The WPA passphrase for the first wireless interface (ath0).
# Default is "n0xb0xr0x"
#WIFI_PASSPHRASE=n0xb0xr0x
# When wireless stations talk to each other, they usually talk through the
# access point.  This is a bit of a special case, because traffic that comes
# in on the interface needs to go back out on the same interface.  pyswitch
# understands this and handles it properly, but other NOX apps may not.
# Enabling this option tells the wifi driver to handle it.  The downside is
# if the wifi driver handles it, NOX/OpenFlow will never even see traffic
# between wireless stations.
# 0 disables the internal bridge making it NOX's responsibility
# 1 enables the bridge so stations can always talk to each other
# 0 is default.
MAGIC_AP_BRIDGE=false
#MAGIC_AP_BRIDGE=true


# Normally in "Internet gateway" type modes (i.e. nat, pppoe, etc.), the NOX
# Box will serve DNS and DHCP.  If you want to override this so it serves
# DNS and DHCP in all modes or no modes, you can specify it here.  "true"
# runs it in all modes.  "false" never runs it.  "default" does the default.
#DNS_AND_DHCP=false
DNS_AND_DHCP=false


# NOX to run (temporarily overridden by /tmp/next_nox and next_nox_dir)
# * Be sure to put in quotes!
# * Be sure to set appropriate directory!
# * Be sure to run with ./ path!
# If you don't want to run a local NOX controller, leave this blank.
#DEFAULT_NOX="./nox_core -i ptcp: pyswitch monitorsui"
DEFAULT_NOX_DIR=/noxbox/nox/src
# Address of the controller (that secchan should connect to).  Defaults to
# the local NOX (localhost).
#CONTROLLER_ADDR=localhost:975
CONTROLLER_ADDR=xxx.xxx.xxx.xxx:975
# If OpenFlow cannot connect to a controller (e.g. NOX), it can go into
# "fail open" mode, where it basically becomes a learning switch until the
# controller becomes available.  You can enable or disable this with "true"
# and "false".  The default is "true".
#FAIL_OPEN=true
FAIL_OPEN=false
# Set the time between secchan inactivity probes.  The time to fail open
# (if fail open is enabled) is three times this number.  See secchan's
# documentation for more information.
# Default is 5.
INACTIVITY_PROBE=5
# By default, OpenFlow uses an arbitrary MAC for the of0 interface.
# Set this to override it with a specific one
#OPENFLOW_MAC=d2:78:ed:e2:f3:d7
# These interfaces will be added to the OpenFlow switch.  Don't add eth0 and
# eth1 here, since those are handled through the PORT1_MODE and PORT2_MODE
# above (i.e. just set those to "on" if you want them on the OpenFlow switch).
#OPENFLOW_INTERFACES="eth2 ath0"
OPENFLOW_INTERFACES="ath0"
Copyright 2008 by the OpenFlow Consortium. All rights reserved. Powered by MediaWiki and WordPress.