I have reinstalled my fedora core 4 like toturial said on howtoforge. I get lan working with eth0 but internet is'nt working. I have router. Server's IP is 192.168.2.103 , my ip and the newtork is 192.168.2.1. How to configure eth0? THNX !
dedicated router, with 4 computers on it. hod do i know that internet is not working? yum update gave me that: [root@localhost ~]# yum update Setting up Update Process Setting up repositories Cannot find a valid baseurl for repo: updates-released [root@localhost ~]# and i can ping only computers in my network. and here is my eth0's config: DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.2.103 NETMASK=255.255.255.0 NETWORK=192.168.2.1 BROADCAST=192.168.2.255 ONBOOT=yes MII_NOT_SUPPORTED=yes what's wrong with it? thanx for your answers!
Not shure how to do it in FC4 as i have currently Ubuntu installed. Please post the output of: netstat -rn If the default route does not point to your gateway, you can set the routing on the commandline with: /sbin/route add -net 0.0.0.0 gw 1.1.1.1 eth0 where you have to replace 1.1.1.1 with the IP address of your gateway.
[root@localhost ~]# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 [root@localhost ~]# /sbin/route add -net 0.0.0.0 gw 192.168.2.1 eth0 network restart.. still nothing
Ok, seems that your gateway is not set. Do you have a file: /etc/sysconfig/network and in the file the setting: GATEWAY=1.1.1.1 where you have to replace 1.1.1.1 with the internal IP address of your router (gateway).
i have set the file to: NETWORKING=yes HOSTNAME=localhost.localdomain GATEWAY=192.168.2.1 still not working
edit: not working again :S [root@localhost ~]# ping www.google.com connect: Network is unreachable [root@localhost ~]# wtf?! i'll get crazy
[root@localhost ~]# ping -c4 64.233.183.99 connect: Network is unreachable [root@localhost ~]# ; generated by /sbin/dhclient-script nameserver 193.189.160.11 search localdomain my eth0: DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.2.103 NETMASK=255.255.255.0 NETWORK=192.168.2.1 BROADCAST=192.168.2.200 GATEWAY=192.168.2.103 ONBOOT=yes hope that helps :S
Why don't you use Code: DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.2.103 NETMASK=255.255.255.0 NETWORK=192.168.2.[B][COLOR="Red"]0[/COLOR][/B] BROADCAST=192.168.2.2[B][COLOR="Red"]55[/COLOR][/B] GATEWAY=192.168.2.103 ONBOOT=yes ?
i replaced, and restarted network, but still: [root@localhost ~]# ping -c4 64.233.183.99 PING 64.233.183.99 (64.233.183.99) 56(84) bytes of data. From 192.168.2.103 icmp_seq=0 Destination Host Unreachable From 192.168.2.103 icmp_seq=1 Destination Host Unreachable From 192.168.2.103 icmp_seq=2 Destination Host Unreachable From 192.168.2.103 icmp_seq=3 Destination Host Unreachable --- 64.233.183.99 ping statistics --- 4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3017ms , pipe 4 [root@localhost ~]#
dunno here's two screens from my ruter: [img=http://img3.imageshack.us/img3/1521/neimenovana0nw.th.jpg] [img=http://img3.imageshack.us/img3/7135/neimenovana12wy.th.jpg] [img=http://img3.imageshack.us/img3/386/neimenovana28nn.th.jpg] hope that helps..
well, i have like that: DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.2.103 NETMASK=255.255.255.0 NETWORK=192.168.2.1 BROADCAST=192.168.2.255 GATEWAY=192.168.2.1 ONBOOT=yes but it's not working :S is there any other network config file i should edit?
Please change Code: NETWORK=192.168.2.[B][COLOR="Red"]1[/COLOR][/B] to Code: NETWORK=192.168.2.[B][COLOR="Red"]0[/COLOR][/B] and restart the network. If it doesn't help, reboot your server. Also have a look at this page: http://www.subnetmask.info/