ZyXEL Communications 3.1 User Manual

Page of 386
 Chapter 7 Trunks
ZyWALL (ZLD) CLI Reference Guide
95
7.5  Trunk Command Examples
The following example creates a weighted round robin trunk for Ethernet interfaces ge1 and ge2. 
The ZyWALL sends twice as much traffic through ge1.
The following example creates a least load first trunk for Ethernet interface ge3 and VLAN 5, which 
will only apply to outgoing traffic through the trunk. The 
ZyWALL
 sends new session traffic 
through the least utilized of these interfaces.
loadbalancing-index 
<inbound|outbound|total>
Use this command only if you use least load first or spill-over as the 
trunk’s load balancing algorithm.
Set either  inbound, outbound, or total (outbound and inbound) 
traffic  to which the ZyWALL will apply the specified algorithm. 
Outbound traffic means the traffic travelling from an internal interface 
(ex. LAN) to an external interface (ex. WAN). Inbound traffic means the 
opposite.
mode {normal|trunk}
Sets the mode for a trunk. Do this first in the trunk’s sub-command 
mode.
move <1..8> to <1..8>
Changes a the interface order in a trunk.
[no] interface {num|interface-name}
Removes an interface from the trunk.
system default-interface-group group-name
Sets the ZyWALL to first attempt to use the the specified WAN trunk.
[no] system default-snat
Enables or disables Source NAT (SNAT). When SNAT is enabled, the 
ZyWALL uses the IP address of the outgoing interface as the source IP 
address of the packets it sends out through the WAN interfaces.
show system default-snat
Displays whether the ZyWALL enable SNAT or not. The ZyWALL 
performs SNAT by default for traffic going to or from the WAN 
interfaces.
show system default-interface-group
Displays the WAN trunk the ZyWALL first attempts to use.
Table 41   
interface-group Commands Summary (continued)
COMMAND
DESCRIPTION
Router# configure terminal
Router(config)# interface-group wrr-example
Router(if-group)# mode trunk
Router(if-group)# algorithm wrr
Router(if-group)# interface 1 ge1 weight 2
Router(if-group)# interface 2 ge2 weight 1
Router(if-group)# exit
Router(config)#
Router# configure terminal
Router(config)# interface-group llf-example
Router(if-group)# mode trunk
Router(if-group)# algorithm llf
Router(if-group)# interface 1 ge3
Router(if-group)# interface 2 vlan5
Router(if-group)# loadbalancing-index outbound
Router(if-group)# exit
Router(config)#