• Aucun résultat trouvé

Configuring and Deleting Network Interfaces

Dans le document DEC OSF/l (Page 32-35)

Setting Up the Network 2

2.2 Running netsetup

2.2.1 Configuring and Deleting Network Interfaces

To configure or delete network interfaces, choose 1 from the Main Menu.

Note that the netsetup utility automatically creates any STREAMS devices in the / dev / streams directory that it finds on the system. The STREAMS devices that are configured are displayed along with their major and minor numbers.

The netsetup utility asks you a series of questions about the system.

Default answers are provided in square brackets ([D. To use a default answer, press Return.

To configure network interfaces, see Section 2.2.1.1.

To delete network interfaces, see Section 2.2.1.2.

2.2.1.1 Configuring Network Interfaces

To configure interfaces, perform the following steps:

1. Indicate and confirm that you want to configure network interfaces.

Enter c at the prompt that asks whether you want to configure or delete interfaces.

The utility prompts you for confirmation. To configure network interfaces, press Return. Otherwise, enter n.

2. Enter and confirm the device name of the interface you want to configure.

If all the network interfaces are configured, the utility asks if you want to reconfigure an interface. If you do not want to reconfigure an interface,

Setting Up the Network 2-7

press Return. Otherwise, enter y.

The net setup utility lists the network adapters that are on the system and asks you to enter the device name of the interface you want to configure. To configure the default device, press Return.

The utility displays the device name of the interface you selected and asks for confirmation.

If the interface you chose is already configured, the utility asks if you want to reconfigure this interface. If you do not want to reconfigure this interface, press Return. Otherwise, enter y.

3. Enter and confirm the host name or interface name.

If this is the first or only network interface you are configuring and there is a default host name, the utility displays the default. To take the the default host name, press Return. To specify a different host name, enter the name.

If there is no default host name, the net setup utility prompts you for one.

The net setup utility displays the host name and asks you to confirm that the name is correct.

If this is not the first network interface you are configuring, the utility asks you to enter a name for the interface you want to configure. If you do not want to name the interface, press Return. The utility asks you to confirm that you do not want to name the interface.

The net setup utility displays the name and asks you to confirm that it is correct.

4. Enter and confirm the Internet Protocol (IP) address.

If there is a default IP address, the utility displays the default. To take the default address, press Return. To specify a different address, enter the address.

If there is no default IP address, net setup prompts you for one.

The utility displays the IP address and asks you to confirm that it is correct. If it is, press Return. If not, enter n. The utility then prompts you again for the IP address.

5. For Serial Line Internet Protocol (SLIP) interfaces, enter and confirm the IP address of the remote SLIP interface.

If there is a default IP address, the utility displays the default. To take the default address, press Return. To specify a different address, enter the address.

If there is no default IP address, net setup prompts you for one.

The utility displays the IP address and asks you to confirm that it is

2-8 Setting Up the Network

correct.

6. Enter and confirm the subnet mask.

The net setup utility asks you to enter the subnet mask. To accept the default, press Return. Otherwise, enter the subnet mask.

The utility displays the subnet mask and asks you to confirm that it is correct. If it is, press Return. If not, enter n. The utility then prompts you again for the subnet mask.

7. For token ring interfaces, enter and confirm the speed of the adapter.

The utility asks you to enter the speed. To take the default speed, press Return. To specify a different speed, enter the speed.

8. Indicate whether you want to add additional ifconfig flags.

The net setup utility asks whether you want to add additional

ifconfig flags. If you do not want additional flags, press Return. To add additional flags, enter y. Enter the flags when prompted, separating each flag with a space.

The utility displays the ifconfig flags and asks you to confirm that they are correct.

9. Confirm that the interface configuration is correct.

The net setup utility displays the configuration parameters and asks you to confirm that they are correct.

10. For SLIP interfaces, enter and confirm the slattach command flags.

If you do not want slattach flags, press Return. Otherwise, enter the flags and press Return.

For more information on slattach command flags, see slattach(8).

11. For SLIP interfaces, enter and confirm the slattach command terminal name.

12. For SLIP interfaces, enter and confirm the slattach command baud rate.

The utility displays the default baud rate of 9600 baud and prompts you to confirm that this is correct.

13. Confirm that the slattach command is correct.

If the slattach command is correct as displayed, press Return. If not, enter n. The utility prompts you again for the slattach command parameters.

For more information, see slattach(8).

To return to the Main Menu, press Return at the prompt that asks whether you want to configure or delete interfaces.

Setting Up the Network 2-9

2.2.1.2 Deleting Network Interfaces

To delete interfaces, perform the following steps:

1. Enter d at the prompt that asks whether you want to configure or delete interfaces.

2. Press Return to confirm that you want to delete an interface.

3. If there is only one interface configured, the utility informs you of this and asks if you want to continue. To delete the interface, enter y.

If you do not want to delete the interface, press Return.

4. Indicate the interface you want to delete.

The utility displays a list of configured interfaces and provides a default interface for you to delete. To delete the default interface, press Return.

To delete a different interface, enter the interface name.

S. Indicate whether you want to delete another interface.

To delete another interface, enter y, and go to step 3.

If you do not want to delete another interface, press Return.

To return to the Main Menu, press Return at the prompt that asks whether you want to configure or delete interfaces.

2.2.2 Enabling or Disabling Network Daemons and Adding Static

Dans le document DEC OSF/l (Page 32-35)