91.1k views
4 votes
Explain how/where could you change the NIC Card configuration from dynamic DHCP setting to an IP address of 10.254.1.42 with a subnet mask of 255.255.0.0 and a gateway of 10.254.0.1. (hint: we spoke about 2 different methods)

User Ferbs
by
4.9k points

1 Answer

2 votes

Answer:

Using the terminal in linux OS to configure a static ip address, gateway and subnet mask.

Step-by-step explanation:

-Enter the terminal in the linux environment and use the ifconfig eth0 or -a to bring up the main network interface and other network interfaces.

- for static network configuration, use;

- ifconfig eth0 10.254.1.42

- ifconfig eth0 netmask 255.255.0.0

- ifconfig eth0 broadcast 10.254.255.255

- and add a default gateway with;

- route add default gw 10.254.0.1 eth0.

- Now verify the settings with the ifconfig eth0 command.

User Colene
by
5.5k points