Static Route Commands Examples - ZyXEL Communications ZYWALL USG Series Reference Manual

Security firewalls
Hide thumbs Also See for ZYWALL USG Series:
Table of Contents

Advertisement

15.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.
Router(config)# ip route 10.10.10.0 255.255.255.0 ge1
Router(config)#
Router(config)# show ip route-settings
Route
===========================================================================
10.10.10.0
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.
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
Nexthop
========================================================================
1
2002:22:22:34::
2001:12::12
2002:22:22:34::
ge2
2
2002:22:22:34::
2001:12::12
3
2002:22:22:34::
Fe80::1:2
The following command deletes a specific static IPv6 route.
Router(config)# no ip6 route 2002:22:22:34::/64 2001:12::12
The following command deletes all static IPv6 routes with the same prefix.
Router(config)# no ip6 route 2002:22:22:34::/64
ZyWALL / USG (ZLD) CLI Reference Guide
Netmask
Nexthop
255.255.255.0
ge1
Metric
0
Prefix Length
Metric
64
2
64
1
64
2
64
2
Chapter 15 Route
127

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents