Re: help on configuring the internet setttings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Aug 2005, Pushparaj Shetty wrote:

Hi all!, I have installed FC4. But gave option automatic n/w config
via DHCP. But now though installation is successful , i am connected
to internet. Please tell me how do I configure manually to give my IP,
gateways and DNS adresseses now.

1. /etc/sysconfig/network
 This file contains information about your hostname, and default gateway

i.e.
[dmz /var/log/samba]# cat /etc/sysconfig/network
NETWORKING=yes
CHOSTNAME=hostname.domain.com
GATEWAY=192.168.0.1
FORWARD_IPV4=no
GATEWAYDEV=eth1

2. /etc/resolv.conf

 This file contains information regarding your dns server settings.

i.e.
[dmz /var/log/samba]# cat /etc/resolv.conf
search domain.com
nameserver 192.168.0.4
nameserver 216.254.141.2

3. /etc/sysconfig/network-scripts/ifcfg-eth0
  This file contains information regarding your ip address settings.

i.e.

[dmz /var/log/samba]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
NOZEROCONF=yes
BROADCAST=192.168.0.255
HWADDR=00:0B:DB:90:85:92
IPADDR=192.168.0.5
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet


4. If you make any changes to the ifcfg-eth0 file you will need to issue the command

/etc/init.d/network restart

5. In order to manually set the ip address of a network card you can alternatively issue the command....

[user@machine]# ifconfig eth0 192.168.0.5 up


6. In order to view the current status of your network settings you can use the commands ifconfig, route, ping, host

i.e.

[user@machine]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0B:DB:90:85:92
          inet addr:192.168.0.5  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20b:dbff:fe90:8592/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22248228 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21880340 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3198263054 (3050.1 Mb)  TX bytes:1046671722 (998.1 Mb)
          Base address:0xcce0 Memory:feb60000-feb80000

[user@machine]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.201.140.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         10.201.140.1    0.0.0.0         UG    0      0        0 eth1

[user@machine]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.209 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.176 ms

[user@machine]# host www.google.com
www.google.com is an alias for www.l.google.com.
www.l.google.com has address 64.233.161.99
www.l.google.com has address 64.233.161.104
www.l.google.com has address 64.233.161.147




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux