[Novalug] networking funcdamentals 1

greg pryzby greg@pryzby.org
Tue Nov 22 13:02:34 EST 2016


INLINE

On Tue, Nov 22, 2016 at 11:47 AM Walt Smith via Novalug <
novalug@firemountain.net> wrote:

>
> centos 6
> In /etc/networking,
> should I have
> hostname myname  OR hostname FQDN  - ( myname.fooey.com ?)
>

I have it in
   /etc/hostname

If static IP I also have it in
   /etc/hosts


> should I have
> domainame  fooey.com  OR if subnetwork: mysubnet.fooey.com
> ( should it include subnetwork) ? (I don't actually have subnet )
>
> should in this distro, should the hostname or domainname
> appear anywhere else such as config files?  I see in several
> scripts they use
> variable $HOSTNAME     OR
> $HOSTNAME = hostname
>

/etc/hostname


> ----------------------------------------------------------
>
> In desktop/X panel,
> I have network icon.
> I have NetworkManager disabled.
>

NetworkManager is a wrapper for networking. It does not enable/enabel
networking


> I have local net, each has cable to hub ( box says it's a hub !!)
> 192.168.1.5 ( ether on linux )
> 192.168.1.10 ( ether on Win )
> 192.168.1.20 ( ether on camera )
>
> So, if networking is disabled ( per above) , how do the devices
> communicate.  I understand the kernel may have
> networking built-in, maybe as a module.  I believe there is
> probably other support softyware tied in with networking.
> So what is disabled ?
> Or-- alternative what makes local net happen ?
>

It is a wrapper, so disabled means you can't use the
*neteworkmanager* tools and have to use other tools or edit files by hand.



> -------------------------------------------------------------------
>
> If I do a
> ifconfig  192.168.1.5 eth0
>
> then the ip is assigned, as expected, however,
> a route appears in the route table !!  I see no info
> that says this happens. and am notnsure if this gets
> tied in to default routes....
>
> A default is 0.0.0, and  a gateway 0.0.0.0 , shows together.
> How does routing occur ?
>

this is th default routing and if you either edit files by hand or use
NetworkManager, it is easier to control and set the values properly.


> ---------------------------------------------------------------------
>
> After boot, it appears
> $route
>
> shows a totally empty table
>
> after a ppp connect:
>
> [waltech@CentOS68 ~]$ route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> mgmt-apx01.bltm *               255.255.255.255 UH    0      0        0
> ppp0
> default         *               0.0.0.0         U     0      0        0
> ppp0
>
> [waltech@CentOS68 ~]$ route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 209.163.113.81  0.0.0.0         255.255.255.255 UH    0      0        0
> ppp0
> 0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0
> ppp0
>
> [waltech@CentOS68 ~]$
>
> The interface is dynamic.  I don't know if the route is
> other than the dynamic IP's !!   However,  IF I enable
> Networking in the desktop, the ppp often stops working or becomes
> confused.   What/Is there something to know or understand
> or examine ?
>
>
> thx,
>
> Walt............
>
> ----
>  The government is lawless, not the press (people).
>  ( [Supreme Court] Justice Douglas re: The Pentagon Papers )
> **********************************************************************
> The Novalug mailing list is hosted by firemountain.net.
>
> To unsubscribe or change delivery options:
> http://www.firemountain.net/mailman/listinfo/novalug
>
-- 

greg pryzby
SOCIAL MEDIA: gpryzby



More information about the Novalug mailing list