H3C Campus Fixed-Port Switches Web-Based Quick Start Configuration Guide-6W100

HomeSupportQuick StartH3C Campus Fixed-Port Switches Web-Based Quick Start Configuration Guide-6W100
09-Static Routing
Title Size Download
09-Static Routing 156.62 KB

Static Routing Quick Start Configuration Guide

Network configuration

As shown in Figure 1, configure static routes on Switch A, Switch B, and Switch C for interconnections between any two hosts.

Figure 1 Network diagram

 

Procedure

Configuring Switch A

1.     Configure VLAN interfaces and assign IP addresses to the interfaces:

From the left navigation pane, select Network > Links > VLAN.

¡     Click the Add icon  to add a VLAN.

¡     Set the VLAN ID to 300.

¡     Click Apply.

Figure 2 Creating a VLAN

 

¡     Click the  icon next to VLAN 300 on the VLAN configuration page to edit the VLAN.

¡     Add GE 1/0/1 connected to Host A to the untagged port list.

¡     Select Configure VLAN interface for IP address of the VLAN interface.

¡     Set the IP address to 1.1.2.3 and mask length to 24.

¡     Click Apply.

¡     Create VLAN-interface 500 and set its IP address. (Details not shown.)

Figure 3 Editing VLAN settings

 

2.     Configure a static route:

¡     From the left navigation pane, select Network > Routing > Static Routing.

¡     On the IPv4 static route configuration page that opens, click the Add icon  to add a static route.

¡     Set the destination IP address to 0.0.0.0 that matches any destination IP addresses.

¡     Set the mask length to 0.

¡     Clear the Output interface option.

¡     Set the next hop IP address to 1.1.4.2.

¡     Use default settings for other parameters.

¡     Click Apply.

Figure 4 Adding a static route

 

3.     Save the configuration:

Click the Save icon  to save the configuration.

Configuring Switch B

1.     Configure VLAN interfaces and assign IP addresses to the interfaces:

Details not shown.

2.     Configure a static route:

¡     From the left navigation pane, select Network > Routing > Static Routing.

¡     On the IPv4 static route configuration page that opens, click the Add icon  to add a static route.

¡     Set the destination IP address to 1.1.2.0.

¡     Set the mask length to 24.

¡     Clear the Output interface option.

¡     Set the next hop IP address to 1.1.4.1.

¡     Use default settings for other parameters.

¡     Click Apply.

Figure 5 Adding a static route to the subnet attached to Host A

 

¡     Click the Add icon  to add a static route.

¡     Set the destination IP address to 1.1.3.0.

¡     Set the mask length to 24.

¡     Clear the Output interface option.

¡     Set the next hop IP address to 1.1.5.6.

¡     Use default settings for other parameters.

¡     Click Apply.

Figure 6 Adding a static route to the subnet attached to Host C

 

3.     Save the configuration:

Click the Save icon  to save the configuration.

Configuring Switch C

1.     Configure VLAN interfaces and assign IP addresses to the interfaces:

Details not shown.

2.     Configure a static route:

¡     From the left navigation pane, select Network > Routing > Static Routing.

¡     On the IPv4 static route configuration page that opens, click the Add icon  to add a static route.

¡     Set the destination IP address to 0.0.0.0.

¡     Set the mask length to 0.

¡     Clear the Output interface option.

¡     Set the next hop IP address to 1.1.5.5.

¡     Use default settings for other parameters.

¡     Click Apply.

Figure 7 Configuring an IPv4 static route

 

3.     Save the configuration:

Click the Save icon  to save the configuration.

Verifying the configuration

On any host, verify that you can ping the other two hosts.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网