I have a Windows laptop and a Sparc desktop. I'm trying to toy around with routing.
If have always on broadband from BT. My router ipaddress is:
192.168.1.1
This router uses DHCP.
My Laptop Ip is as follows:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : home
IP Address. . . . . . . . . . . . : 192.168.1.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
I don't want to use DHCP on my Sparc desktop and I have plumbed the interface as follows:
interface bge0:
IP address: 10.0.0.2
Netmask 255.255.255.0
I want to add a route in the router's routing table to enable me to ping or telnet from my windows laptop to my sparc desktop. I can't seem to get
the netmask or gateway correct.
The router asks for the following:
Add New Static Route
Destination (For default route, type 0.0.0.0 or leave blank)
IP Address:
Netmask:
Forward packets to
Gateway IP address:
How do I achieve adding this route?
Thanks in advance.
Is it your intent to merely have these 2 machines connect, or to set 2 routes?
If your intent is to have both machines connect, then just put them both on 192.168.1 . Your home "router" shouldn't care if the connection is stiatc or dynamic - some of them may require you set an IP range that dhcp can serve - so just set the bge0 interface to 192.168.1.4 (or whatever you want the last octet to be).
If your intent is to, well I don't know how our specific home router works and if it lets you create vlans or just point to other devices, but the network would be 10.10.10.0, the mask 255.255.255.0; as for the gateway IP, again, I don't know how your specific home device works, usually you'll enter the gateway IP address of another switch(or vlan in the switch) ; I'd try to enter 10.10.10.2, the IP address of the Sun desktop, and see if it works.
But it'd just be easier to set a range of DHCP addresses in your home device and hardcode a 192.168.1 address on the Sun desktop.
Are you using the ip of the box? if you are, I think you should be using the 255.255.255.255 address for the route's netmask(e.g 10.0.0.2 netmask 255.255.255.255 instead of the network address 255.255.255.0). When you use that subnet mask(255.255.255.0), it's saying that the 10.x.x.x and 192.x.x.x are are the same network.
Also, what is the gateway for you 10.0.0.2 box?