Ubuntu and static IP address

Fred Roller froller at tnclimited.com
Thu Sep 24 18:14:58 UTC 2009


dfox94085 wrote:
> On Thu, Sep 24, 2009 at 4:40 AM, Karl F. Larsen <klarsen1 at gmail.com> wrote:
>
>   
>>        Steve, how do you find out what your Gateway is? My router
>> might be 192.168.2.0 but not certain.
>>     
> \
> I don't use a router, I plug my computer into the wall... literally.
> Ethernet in da house! :)
>
> But my gateway IP ends in .1 which is common.
>
> eth0      Link encap:Ethernet  HWaddr 00:22:15:ca:eb:a3
>           inet addr:64.71.11.91  Bcast:64.71.11.255  Mask:255.255.255.0
>           inet6 addr: fe80::222:15ff:feca:eba3/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:4481232 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:556272 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:2045594684 (2.0 GB)  TX bytes:147708256 (147.7 MB)
>           Interrupt:251 Base address:0xe000
>
> Info from 'route'
>
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 64.71.11.0      *               255.255.255.0   U     1      0        0 eth0
> link-local      *               255.255.0.0     U     1000   0        0 eth0
> default         64-71-11-1.stat 0.0.0.0         UG    0      0        0 eth0
>
> The default route is indeed 64.71.11.1, then that gets broadcast over
> the Net - 64.7.1.11.0 being the "internet" afailk.
>
> Without a router and subnets and only one machine, this is a pretty
> trivial setup to do.
>
>
>
>
>
>
>   
froller at metis:~$ ping 64.71.11.91
PING 64.71.11.91 (64.71.11.91) 56(84) bytes of data.
64 bytes from 64.71.11.91: icmp_seq=1 ttl=47 time=133 ms
64 bytes from 64.71.11.91: icmp_seq=2 ttl=47 time=134 ms
^C
--- 64.71.11.91 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 133.907/134.316/134.725/0.409 ms


Peek-a-boo!  Careful what you post.

-- 
Fred
www.fwrgallery.com

"Life is like linux, simple.  If you are fighting it you are doing something wrong."





More information about the ubuntu-users mailing list