I installed centos on virtualbox. During the install I configured network
adapter 1 (NAT) as dhcp to see if it'll pick up the network. It did. Then I changed the config files to assign a static ip to it. I'm connected to the internet through a router (192.168.1.1)
/etc/sysconfig/network:
Code:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
GATEWAY=192.168.1.1
# route
Code:
Destination Gateway Genmask Flags Metric Ref use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
/etc/sysconfig/networking/devices/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=none
HWADDR=08:00:27:90:F9:62
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.222
GATEWAY=192.168.1.1
TYPE=Ethernet
/etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BROADCAST=192.168.1.255
BOOTPROTO=none
HWADDR=08:00:27:90:f9:62
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.222
GATEWAY=192.168.1.1
NETWORK=192.168.1.0
TYPE=Ethernet
/etc/resolv.conf
Code:
search localdomain
nameserver 192.168.1.1
ping 192.168.1.1 gives 'destination not reachable
yum install somefile gives
[Errno 4] IOError ...Temporary failure in name resolution...
Why is it like that - resolv.conf seems to be ok, isn't it.
I don't know if it matters, but it's on a fedora laptop connected
to the router through wireless connection (ndiswrapper)
any hints
thanks
edit: sorry for the output of 'route' I haven't found a way of copying/pasting from virtualbox (centos) to fedora- I just retyped it.