Working from a CLI
Advanced Configuration
271
setnetwork - Set Ethernet Subinterfaces
At this point, if the Ethernet default gateway is already configured, the
following option appears:
Note:
This script creates the configuration file:
/etc/network/ifcfg-eth<index>
which has the same format as
ifcfg-eth0
and
ifcfg-eth1
.
OBS: In this example, index = 0, 0:1, and 0:9999.
The third option, “(K)eep” command, gives you the option to skip to the next
Ethernet interface without changing the configuration of the current interface.
Use Ctrl+c to stop changing interfaces and keep all changes made. If you do
not exit with Ctrl+c at the end, the script will ask if you want to make the
[root@APM-gregg root]#
setnetwork
Show current configuration: (Y)es or (N)o ? [N]:
n
Enable Ethernet Bonding: (Y)es or (N)o ? [N]:
n
Ethernet eth0 IP address: (S)tatic, (D)HCP, (N)one or (K)eep current ? [K]:
s
Enter Ethernet eth0 IP address: 192.168.48.162
Enter Ethernet eth0 Subnet Mask: 255.255.252.0
Ethernet eth1 IP address: (S)tatic, (N)one or (K)eep current ? [K]:
s
Enter Ethernet eth1 IP address: 10.10.10.2
Enter Ethernet eth1 Subnet Mask: 255.255.0.0
Configure Ethernet Subinterfaces: (Y)es, (N)o or (L)ist ? [N]:
l
Number of Ethernet Subinterfaces already configured: 0
Configure Ethernet Subinterfaces: (Y)es, (N)o or (L)ist ? [N]:
y
Enter the Ethernet number [0-1]:
0
Enter the Subinterface index [0-9999]:
1
Subinterface eth0:1 IP address: (S)tatic or (N)one ? [S]:
s
Enter Subinterface eth0:1 IP address: 1.1.1.1
Enter Subinterface eth0:1 Subnet Mask: 255.0.0.0
Configure more Ethernet Subinterfaces: (Y)es, (N)o or (L)ist ? [N]:
n
Configure Ethernet VLANs: (Y)es, (N)o or (L)ist ? [N]:
y
Enter the Ethernet number [0-1]:
0
Enter the VLAN index [0-4094]:
2
VLAN eth0.2 IP address: (S)tatic or (N)one ? [S]:
s
Enter VLAN eth0.2 IP address:
3.3.3.3
Enter VLAN eth0.2 Subnet Mask:
255.0.0.0
Configure more Ethernet VLANs: (Y)es, (N)o or (L)ist ? [N]:
n
Ethernet Default Gateway: (C)hange or (K)eep current ? [K]:
c
Enter Ethernet Default Gateway [none]:
192.168.48.1
Содержание AlterPath Manager 2500
Страница 16: ...xiv AlterPath Manager Installation Configuration and User s Guide ...
Страница 20: ...xviii AlterPath Manager Installation Configuration and User s Guide ...
Страница 32: ...AdditionalResources xxx APM Installation Configuration and User s Guide ...
Страница 52: ...OnSite Support 20 APM Installation Configuration and User s Guide ...
Страница 74: ...Pre Configuration Requirements 42 APM Installation Configuration and User s Guide ...
Страница 116: ...User s Profile 84 APM Installation Configuration and User s Guide ...
Страница 228: ...Groups 196 APM Installation Configuration and User s Guide Figure 4 57 New User Group Security Form ...
Страница 286: ...Redundant Fault Tolerant Configuration 254 APM Installation Configuration and User s Guide ...
Страница 354: ...Data Logging Session Activation 322 AlterPath Manager Installation Configuration and User s Guide ...
Страница 364: ...332 APM Installation Configuration and User s Guide ...