Zyxel USG 40 [137/438] Static route commands examples

Zyxel USG 40 [137/438] Static route commands examples
Chapter 16 Route
ZyWALL / USG (ZLD) CLI Reference Guide
137
16.4.1 Static Route Commands Examples
The following command sets a static route with IP address 10.10.10.0 and subnet mask
255.255.255.0 and with the next-hop interface ge1. Then use the show command to display the
setting.
The following commands set and show three examples of static IPv6 routes for traffic destined for
IPv6 addresses with prefix 2002:22:22:34::. The first route sends the traffic out through interface
ge2 and uses metric 1. The second sends the traffic to gateway 2001:12::12 and uses metric 2.
The third sends the traffic to the fe80::1:2 link local gateway on interface ge2 and uses metric 2.
The following command deletes a specific static IPv6 route.
The following command deletes all static IPv6 routes with the same prefix.
Router(config)# ip route 10.10.10.0 255.255.255.0 ge1
Router(config)#
Router(config)# show ip route-settings
Route Netmask Nexthop Metric
===========================================================================
10.10.10.0 255.255.255.0 ge1 0
Router(config)# ip6 route 2002:22:22:34::/64 ge2 1
Router(config)# ip6 route 2002:22:22:34::/64 2001:12::12 2
/* link-local gateway bind on interface */
Router(config)# ip6 route 2002:22:22:34::/64 fe80::1:2 ge2 2
Router(config)# show ip6 route-settings
No. Route Prefix Length
Nexthop Metric
========================================================================
1 2002:22:22:34:: 64
2001:12::12 2
2002:22:22:34:: 64
ge2 1
2 2002:22:22:34:: 64
2001:12::12 2
3 2002:22:22:34:: 64
Fe80::1:2 2
Router(config)# no ip6 route 2002:22:22:34::/64 2001:12::12
Router(config)# no ip6 route 2002:22:22:34::/64

Содержание

Похожие устройства