Eric at Lucii.org on 13 Oct 2010 15:33:21 -0700


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

Re: [PLUG] networking question


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Randall:

looking at man 8 netconfig

Thanks!

Eric

On 10/13/2010 06:02 PM, Randall A Sindlinger wrote:
> Eric,
> 
> I believe you want to use /sbin/netconfig.
> 
> It looks like that will modify /etc/sysconfig/network/config.
> 
> `man netconfig` and `less /etc/sysconfig/network/config` will
> give you lots of extra info.
> 
> In the end, though, the file you really care about is
> /etc/resolv.conf for dns.  It should look something akin to
> 
>  # cat /etc/resolv.conf
>  domain seas.upenn.edu
>  options timeout:1
>  nameserver 128.91.2.13
>  nameserver 128.91.254.1
>  nameserver 158.130.66.194
>  search seas.upenn.edu upenn.edu
> 
> We're using our own scripts to generate the appropriate entries in
> /etc/resolv.conf, hence my uncertainty about 'netconfig'.  Netconfig
> will detect manual edits to /etc/resolv.conf, and tell you that it's 
> not automatically updating the file, but instead saving its output
> to /etc/resolv.conf.netconfig.
> 
> Glad to help,
> -Randall
> 
> --
>   Randall Sindlinger
>   Systems Programmer, CETS
>   School of Engineering and Applied Science
>   University of Pennsylvania
>   
> 
> 
> On Wed, Oct 13, 2010 at 05:47:49PM -0400, Eric at Lucii.org wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> 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:
>>>
>>>  # cat /etc/sysconfig/network/routes 
>>>  default 10.10.10.1 - -
>>>
>>> -Randall
>>>
>>> On Wed, Oct 13, 2010 at 01:26:02PM -0400, Eric at Lucii.org wrote:
>>>
>>> Installing OpenSuSE 11.3 guest in Virtualbox 3.2.8 on an Ubuntu 10.4 host.
>>>
>>> Where is the default route?
>>> I can fix it by entering:  route add default gw 10.10.10.1
>>> Any idea how to permanently fix this?
>>>
>>> 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
> 

- -- 
#  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/

iEYEARECAAYFAky2M6gACgkQ2sGpvXQrZ/5fkgCghRTldPFLrWjSRrBktt2swBIt
iZkAnAwyVjRUCDukhzapC+jWITiH3sdZ
=30RA
-----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