
First, add the gateway IPv4 address object if it does not already exist:
Device:/> add Address IP4Address wan_gw Address=203.0.113.1
This is the address of the ISP's gateway which is the first router hop towards the public Internet. If
this IP object already exists, it can be given the IP address with the command:
Device:/> set Address IP4Address wan_gw Address=203.0.113.1
Now, set the gateway on the
G2
. interface which is connected to the ISP:
Device:/> set Interface Ethernet G2 DefaultGateway=wan_gw
Next, set the IP address of the
G2_ip
address object which is the IP assigned to the interface:
Device:/> set Address IP4Address InterfaceAddresses/G2_ip
Address=203.0.113.35
Note: Qualifying the names of IP objects in folders
On initial startup of the 6000 Series, cOS Core automatically creates and fills the
InterfaceAddresses
folder in the cOS Core address book with Ethernet interface related
IPv4 address objects.
Note that when an IP address object which is located in a folder is specified in the CLI,
the object name must be qualified with the name of its parent folder. For example, to
reference the address
G2_ip
, it must be qualified with the folder name
InterfaceAddresses
so it becomes
InterfaceAddresses/G2_ip
.
If an object is not contained in a folder and is at the top level of the address book then no
qualifying parent folder name is needed.
Now, set the IP object
G2_net
. which will be the IPv4 network of the connecting interface:
Device:/> set Address IP4Address InterfaceAddresses/G2_net
Address=203.0.113.0/24
Before continuing, it is recommended to verify the properties of the
G2
. interface using the
following command:
Device:/> show Interface Ethernet G2
The typical output from this will be similar to the following:
Property
Value
--------------------------
--------------------------
Name:
G2
IP:
InterfaceAddresses/G2_ip
Network:
InterfaceAddresses/G2_net
DefaultGateway:
wan_gw
Broadcast:
203.0.113.255
PrivateIP:
<empty>
NOCHB:
<empty>
MTU:
1500
Metric:
100
DHCPEnabled:
No
EthernetDevice:
0:G2
1:<empty>
AutoSwitchRoute:
No
AutoInterfaceNetworkRoute:
Yes
AutoDefaultGatewayRoute:
Yes
ReceiveMulticastTraffic:
Auto
MemberOfRoutingTable:
All
Chapter 4: cOS Core Configuration
65
Содержание NetWall 6000 Series
Страница 1: ...Clavister NetWall 6000 Series Getting Started Guide...
Страница 15: ...Chapter 1 NetWall 6000 Series Overview 15...
Страница 37: ...Chapter 3 Installation 37...
Страница 78: ...Chapter 4 cOS Core Configuration 78...