The following procedure uses lan2 as an example to describe how to set network port parameters and set a network port as the default route egress.
- Run an SSH tool on a computer. Enter the lan2 port default IP address and log in to the SC server as the admin user.http://localhost:7890/pages/SEE1219N/13/SEE1219N/13/resources/public_sys-resources/icon-note.gif NOTE:
- The default IP address and port number used to log in to the SC server are 192.168.1.100 and 122 respectively. The SC server supports only SSH2.
- The default user name and password of the SC are admin and Change_Me, respectively. To ensure system security, change the password at your first login and note down the new password. If you forget your password, you must reinstall the SC to obtain the default password of the admin user.
- Run the following command to change the IP address, subnet mask, and gateway address of
the lan2 port:
system-view sys-config network-config lan2 ipv4 address 10.68.160.104 netmask 255.255.254.0 gateway 10.68.160.1
Table 1 describes the parameters in the command.
Table 1 Command parameters Parameter
Description
lan2
- To configure the network port labeled 1 on the SC server rear panel, enter lan1.
- To configure the network port labeled 2 on the SC server rear panel, enter lan2.
10.68.160.104
Enter the values of the parameters. For detailed values, refer to 3.4 Networking Plan.
255.255.254.0
10.68.160.1
If the following prompt is returned, proceed to Step 3 without restarting the SC.
Please restart the system, as some critical configuration items have been modified.
- (Optional) Repeat Step 1 and Step 2 to change the
network parameters of the lan1 port.http://localhost:7890/pages/SEE1219N/13/SEE1219N/13/resources/public_sys-resources/icon-note.gif NOTE:
This step is required when the SC is set to video firewall mode. In video firewall mode, two network adapters are used, and you need to configure both lan1 and lan2 ports.
- (Optional) To enable the SC to communicate with
devices on a different network segment, configure a static route for the lan2 port.
system-view static-route add dest-address dest-address mask-or-prefix mask-or-prefix network-port network-port
Table 2 describes the parameters in the command.
Table 2 Command parameters Parameter
Description
dest-address
Destination address of the static route.
mask-or-prefix
IPv4 subnet mask or IPv6 prefix length.
network-port
Identifier of the network port.
- To configure the network port labeled 1 on the SC server rear panel, enter lan1.
- To configure the network port labeled 2 on the SC server rear panel, enter lan2.
- (Optional) Run the following command to specify the
default static route:
system-view sys-config network-config default-route lan lan2
http://localhost:7890/pages/SEE1219N/13/SEE1219N/13/resources/public_sys-resources/icon-note.gif NOTE:If multiple static routes are available on the SC, specify the default route egress.
To view the network port settings for the SC, run the dis sys command.
- Run
the following command to restart the SC for the settings to take effect:
reboot