|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] networking question
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ah, very good!
I added this line to /etc/resolv.conf:
nameserver 10.10.10.1
Then restarted:
====================================================================
testserv:/etc/sysconfig/network # /sbin/rcnetwork stop
ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched...
You can find my version in /etc/resolv.conf.netconfig ...
Shutting down network interfaces:
eth0 device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
eth0
done
Shutting down service network . . . . . . . . .
done
testserv:/etc/sysconfig/network # /sbin/rcnetwork start
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
eth0 device: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
eth0 IP address: 10.10.10.179/24
eth0
done
Setting up service network . . . . . . . . . .
done
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
SuSEfirewall2: batch committing...
SuSEfirewall2: Firewall rules successfully set
================================================================
After that it works beautifully.
Thank you!
Eric
On 10/13/2010 05:58 PM, Kyle R. Burton wrote:
> Eric,
>
> I think to get DNS you need to list your office or ISP's nameservers
> in /etc/resolv.conf:
>
> domain domain-name.com
> search domain-name.com
> nameserver <<primary-nameserver-ip-addr>
> nameserver <<secondary-nameserver-ip-addr>
>
>
> HTH
>
> Kyle
>
> On Wed, Oct 13, 2010 at 5:47 PM, Eric at Lucii.org <eric@lucii.org> wrote:
> Randall, Wow, thanks - that's exactly what I needed.
>
> I added a file, /etc/sysconfig/network/routes with a single line:
> default 10.10.10.1 - -
>
> After some fiddling with config (turning off NetworkManager) and exercising some
> network commands:
> /sbin/rcnetwork
> ifdown eth0
> ifup eth0
>
> ...the default route is there!
>
> I can ping external addresses like 4.2.2.2 but I can't get DNS resolution:
> ping www.google.com
> ping: unknown host www.google.com
>
> I'm guessing that when I turned off NetworkManager it lost the DNS address,
> 10.10.10.1, that I had set in there.
>
> What else am I missing to get DNS?
>
> Thanks again,
> Eric
>
> On 10/13/2010 05:04 PM, Randall A Sindlinger wrote:
>>>> Yea! A question I feel authoritative on! (as opposed to all those
>>>> darned Ubuntu questions :-)
>>>>
>>>> # cat /etc/sysconfig/network/routes
>>>> default 10.10.10.1 - -
>>>>
>>>> If you don't have that file, you don't have a default route.
>>>> Yeah, I agree - OpenSuSE should have put that in when you installed it.
>>>> <shrug/>
>>>>
>>>> HTH,
>>>> -Randall
>>>> --
>>>> Randall Sindlinger
>>>> Systems Programmer, CETS
>>>> School of Engineering and Applied Science
>>>> University of Pennsylvania
>>>>
>>>>
>>>>
>>>> On Wed, Oct 13, 2010 at 01:26:02PM -0400, Eric at Lucii.org wrote:
>>>> Background:
>>>>
>>>> Installing OpenSuSE 11.3 guest in Virtualbox 3.2.8 on an Ubuntu 10.4 host.
>>>>
>>>> + Selected Gnome desktop
>>>> + Network configured in the setup process as:
>>>> static IP 10.10.10.179
>>>> netmask 255.255.255.0
>>>> gateway 10.10.10.1
>>>> + Install appeared to complete without a hitch.
>>>>
>>>> Now, I can see any address in the 10.10.10.0 space but cannot see anything on
>>>> the Internet. For example:
>>>>
>>>> # ping www.google.com
>>>> connect: Network is unreachable
>>>>
>>>> So, I look in more detail:
>>>>
>>>> # route
>>>> Kernel IP routing table
>>>> Destination Gateway Genmask Flags Metric Ref Use Iface
>>>> 10.10.10.0 * 255.255.255.0 U 0 0 0 eth0
>>>> link-local * 255.255.0.0 U 0 0 0 eth0
>>>> loopback * 255.0.0.0 U 0 0 0 lo
>>>>
>>>> Where is the default route?
>>>>
>>>> I can fix it by entering: route add default gw 10.10.10.1
>>>>
>>>> Apparently, the OpenSuSE installer just set up the static IP
>>>> and routing and somehow I missed how to tell it about a default route (right).
>>>>
>>>> I set NETWORKMANAGER="yes" in the config file, restarting the network, and
>>>> configuring AUTO eth0 in the GUI. There is still no default route.
>>>> The Network Manager route option does not seem to stick.
>>>>
>>>> Any idea how to permanently fix this?
>>>>
>>>> Thanks,
>>>>
>>>> Eric
> ___________________________________________________________________________
> Philadelphia Linux Users Group -- http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
>>>>>
>>>> ___________________________________________________________________________
>>>> Philadelphia Linux Users Group -- http://www.phillylinux.org
>>>> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
>>>> General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
>
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
>>
- --
# Eric Lucas
#
# "Oh, I have slipped the surly bond of earth
# And danced the skies on laughter-silvered wings...
# -- John Gillespie Magee Jr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAky2MPkACgkQ2sGpvXQrZ/7OJQCg0b8vHCxXJYln3xCibQMxoq3c
duIAoMdjqtDdtSuaQc5wm8Glsv3Kqe2k
=3Z1Y
-----END PGP SIGNATURE-----
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|