D-Link DFL-260-IPS-12 Product Manual - Page 95
Useful CLI Commands for Ethernet Interfaces, set Interface Ethernet lan IP=10.1.1.2
View all D-Link DFL-260-IPS-12 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 95 highlights
3.3.2. Ethernet Interfaces Chapter 3. Fundamentals Routes can be automatically added for the interface. This addition can be of the following types: i. Add a route for this interface for the given network. This is enabled by default. ii. Add a default route for this interface using the given default gateway. This is enabled by default. • MTU This determines the maximum size of packets in bytes that can be sent on this interface. By default, the interface uses the maximum size supported. • High Availability There are two options which are specific to high availability clusters: 1. A private IP address can be specified for this interface. 2. An additional option is to disable the sending of HA cluster heartbeats from this interface. • Quality Of Service The option exists to copy the IP DSCP precedence to the VLAN priority field for any VLAN packets. This is disabled by default. Changing the IP Address of an Ethernet Interface To change the IP address on an interface, we can use one of two methods: • Change the IP address directly on the interface. For example, if we want to change the IP address of the lan interface to 10.1.1.2, we could use the CLI command: gw-world:/> set Interface Ethernet lan IP=10.1.1.2 As explained next, this way of changing the IP address is not recommended. • Instead, the ip_lan object in the NetDefendOS Address Book should be assigned the new address since it is this object that is used by many other NetDefendOS objects such as IP rules. The CLI command to do this would be: gw-world:/> set Address IP4Address ip_lan Address=10.1.1.2 This same operation could also be done through the Web Interface. A summary of CLI commands that can be used with Ethernet interfaces can be found in Section 3.3.2.1, "Useful CLI Commands for Ethernet Interfaces". 3.3.2.1. Useful CLI Commands for Ethernet Interfaces This section summarizes the CLI commands most commonly used for examining and manipulating NetDefendOS Ethernet interfaces. Ethernet interfaces can also be examined through the Web Interface but for some operations the CLI must be used. To show the current interface assigned to the IP address wan_ip: gw-world:/> show Address IP4Address InterfaceAddresses/wan_ip 95