C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
Working with Profiles
 

12.12. Working with Profiles

nicknames and different configuration options, all to be specifically associated with eth0.

Device aliases are also associated with the same physical hardware device, but device aliases associated with the same physical hardware can be activated at the same time. Refer to Section 12.13 Device Aliases for details about creating device aliases.

Profiles use the Network Administration Tool to switch back and forth between them.

By default, there is one profile called Common. To create a new profile, select Profile => New from the pull-down menu, and enter a unique name for the profile.

You are now modifying the new profile as indicated by the status bar at the bottom of the main window.

Click on an existing device already in the list, and click the Copy button to copy the existing device to a logical network device. If you use the New button, a network alias will be created, which is incorrect. To change the properties of the logical device, select it from the list and click Edit. For example, the nickname can be changed to a more descriptive name, such as eth0_office, so that it can be recognized more easily.

In the list of devices, there is a column of checkboxes labeled Profileeth0_office in a profile called Office and want to activate the logical device if the profile is selected, uncheck the eth0 device and check the eth0_office device.

For example, Figure 12-18 shows a profile called Office with the logical device eth0_office. It is configured to activate the first Ethernet card using DHCP.

Figure 12-18. Office Profile

Notice that the Home profile as shown in Figure 12-19 activates the eth0_home logical device, which is associated with eth0.

Figure 12-19. Home Profile

You can also configure eth0 to activate in the Office profile only and to activate a ppp (modem) device in the Home profile only. Another example is to have the Common profile activate eth0 and an Away profile activate a ppp device for use while traveling.

A profile cannot be activated at boot time. Only the devices set to activate at boot time in the Common profile (the default profile) are activated at boot time. After the system as booted, go to Main Menu (on the Panel) => System Tools => Network Device Control (or type the command redhat-control-network) to select a profile and activate it. The activate profile section only appears in the Network Device Control interface if more than the default Common interface exists.

Alternatively, execute the following command to enable a profile (replace <profilename> with the name of the profile):

redhat-config-network-cmd --profile <profilename> --activate
Главная