Managing multiple network interface cards in Red Hat Fedora Core 9 Codename Sulphur
Managing multiple network interface cards in Red Hat Fedora Core 9
If you have multiple IP addresses and don’t use Dynamic Host Configuration Protocol (DHCP) then this post might be for you. Try running dhclient eth0, as root, to use DHCP instead of a using a manual network configuration in Red Hat Fedora Core 9.
- ifconfig
- Shows the status and settings of current active network interfaces.
- ifconfig -a
- Shows the status of all installed network interfaces even if they are down.
- ifconfig eth0
- Shows status and settings of eth0.
- ifconfig eth0 down
- To take a network interface down.
- ifconfig eth0 up
- To bring a network interface back up.
- ifconfig eth0 192.168.0.2 netmask 255.255.255.0
- Set IP address and netmask for eth0
- ifconfig ethx x.x.x.x netmask x.x.x.x
- ifconfig eth0:1 192.168.0.3 netmask 255.255.255.0
- Assign a second IP address to eth0
- Could use eth0:2, eth0:3 for multiple IP addresses attached to one network interface card.
- ifconfig vmnet1 down
- Shut down virtual network interface.
- route
- Outputs the Kernel IP routing table.
- route add default gw 192.168.0.1
- Add default gateway, usually address of hardware router.
- echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
- Turns off ping replies on all network interfaces.
- echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
- Turns on ping replies on all network interfaces.
- /etc/resolv.conf
- Nameserver config, where to put your DNS server entries.
- Add this to /etc/resolv.conf
- nameserver 192.168.0.1
