HP (Hewlett-Packard) 6308M-SX Switch User Manual


 
Advanced Configuration and Management Guide
The following command configures a static default route to the Internet access router. The routing switch uses this
route for traffic that is addressed to a destination for which the IP route table does not have an explicit route.
Typically, the IP route table does not have explicit routes to all destination networks on the Internet.
HP9300(config)# ip route 0.0.0.0 0.0.0.0 63.251.295.1
The address 0.0.0.0 0.0.0.0 is the standard notation for an IP default route. The 63.251.295.1 address is the
address of the next-hop gateway for the route. In this case, the next-hop gateway is the routing switchs IP
interface with Internet access router.
The following commands configure an IP address on virtual interface 10, which is the virtual interface for the
private network, and enable inside NAT on the interface.
HP9300(config)# interface ve 10
HP9300(config-ve-10)# ip address 10.10.10.50 255.255.255.192
HP9300(config-ve-10)# ip nat inside
HP9300(config-ve-10)# exit
The following commands configure an IP address on virtual interface 15, which is the interface to the Internet
access router, and enable outside NAT on the interface.
HP9300(config)# interface ve 15
HP9300(config-ve-15)# ip address 63.251.295.46 255.255.255.192
HP9300(config-ve-15)# ip nat outside
HP9300(config-ve-15)# exit
The following command saves all the configuration changes above to the routing switchs startup-config file on
flash memory. The routing switch applies NAT configuration information as soon as you enter it into the CLI.
Saving the changes to the startup-config file ensures that the changes are reinstated following a system reload.
HP9300(config)# write memory
11 - 18