07-16-2008
use route add command for the default gateway.
Login as root and fire:
#route add default 192.168.2.167
The ouput will be:
#add net default: gateway 192.168.2.167
Then do netstat -rn as usual and also try to ping thru the gateway out to some host.
Make the changes permanent so that they are available after booting too.
#vi /etc/defaultrouter
AND append IP address: 192.168.2.167
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
The infomation: Sun Ultra10 (SPARC),OS Solaris 8
I finished installed Solaris8 on my workstation, i want configure the net. When i run ,'ifconfig -a ' ,i did't find my familiar 'hme0,hme1' network interface,my interface is good and the reticle is connected correctly.
Pls help me, tell me how... (2 Replies)
Discussion started by: q30
2 Replies
2. Solaris
Withouth being physically at the server, is there a way to tell if the network cable is unplugged? (6 Replies)
Discussion started by: csaunders
6 Replies
3. Solaris
I have a machine that has developed a strange network problem. Anytime it sends an FTP file somewherwe, no problem. When it is the target machine, extremely slow. I checked the /var/adm/messages file and found a few of these:
SUNW,hme0 : No response from Ethernet network : Link down -- cable... (2 Replies)
Discussion started by: hshapiro
2 Replies
4. Solaris
I have a solaris x86 box that ive been having trouble getting on my network, anyone know a good guide that can take me through it step by step? (1 Reply)
Discussion started by: xtremepancakez
1 Replies
5. Solaris
Hi gurus,
I need book to learn about network in Solaris 9
Thanks (2 Replies)
Discussion started by: mass1123
2 Replies
6. Solaris
I have installed solaris x86 on a standalone PC. Now I have connected a LAN cable to it. What do I do next for further configuration or to access internet from that solaris machine? (16 Replies)
Discussion started by: panchpan
16 Replies
7. Solaris
Hi,
i have installed solaris on virtual box in my desktop, i wanted to know how to make it network enabled(nated network). Nated network means it will use same IP as of my windows right? so is it possible that using the same IP i can enable the network on this virtual box.
Thanks in advance. (3 Replies)
Discussion started by: amult
3 Replies
8. Solaris
Hi,
I'm very new to Solaris world and istarted my learnign with a Blade T6320 Server.
I was trying to install Solaris 10.8 from a DVD image over the network.
But from the client(the machine which i want to install Solaris) when i tried boot net , i am getting a message like " cannto find... (5 Replies)
Discussion started by: jerinvjose
5 Replies
9. Solaris
Hi all,
I got a Fujitsu P650 server running on Solaris 9 and we are going to re-install Solaris 10 . W have a build server in a different IP segment. So we setup a boot server and /etc/ethers and /etc/bootparams are all updated. When I issue
boot net -install,
I'm getting the following... (3 Replies)
Discussion started by: mohzub
3 Replies
10. Solaris
Dear All,
I have a solaris Server in which I have 4 network interfaces , out of which only one is used . So all the applications are using this interface .
The interface speed is 1000Mbps . I find no hardware issue or packets g being dropped.
But i find that no of Input and Output... (4 Replies)
Discussion started by: jegaraman
4 Replies
GRE(4) BSD Kernel Interfaces Manual GRE(4)
NAME
gre -- encapsulating network device
SYNOPSIS
To compile the driver into the kernel, place the following line in the kernel configuration file:
device gre
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
if_gre_load="YES"
DESCRIPTION
The gre network interface pseudo device encapsulates datagrams into IP. These encapsulated datagrams are routed to a destination host, where
they are decapsulated and further routed to their final destination. The ``tunnel'' appears to the inner datagrams as one hop.
gre interfaces are dynamically created and destroyed with the ifconfig(8) create and destroy subcommands.
This driver corresponds to RFC 2784. Encapsulated datagrams are prepended an outer datagram and a GRE header. The GRE header specifies the
type of the encapsulated datagram and thus allows for tunneling other protocols than IP. GRE mode is also the default tunnel mode on Cisco
routers. gre also supports Cisco WCCP protocol, both version 1 and version 2.
The gre interfaces support a number of additional parameters to the ifconfig(8):
grekey Set the GRE key used for outgoing packets. A value of 0 disables the key option.
enable_csum Enables checksum calculation for outgoing packets.
enable_seq Enables use of sequence number field in the GRE header for outgoing packets.
EXAMPLES
192.168.1.* --- Router A -------tunnel-------- Router B --- 192.168.2.*
/
/
+------ the Internet ------+
Assuming router A has the (external) IP address A and the internal address 192.168.1.1, while router B has external address B and internal
address 192.168.2.1, the following commands will configure the tunnel:
On router A:
ifconfig greN create
ifconfig greN inet 192.168.1.1 192.168.2.1
ifconfig greN inet tunnel A B
route add -net 192.168.2 -netmask 255.255.255.0 192.168.2.1
On router B:
ifconfig greN create
ifconfig greN inet 192.168.2.1 192.168.1.1
ifconfig greN inet tunnel B A
route add -net 192.168.1 -netmask 255.255.255.0 192.168.1.1
NOTES
The MTU of gre interfaces is set to 1476 by default, to match the value used by Cisco routers. This may not be an optimal value, depending
on the link between the two tunnel endpoints. It can be adjusted via ifconfig(8).
For correct operation, the gre device needs a route to the decapsulating host that does not run over the tunnel, as this would be a loop.
The kernel must be set to forward datagrams by setting the net.inet.ip.forwarding sysctl(8) variable to non-zero.
SEE ALSO
gif(4), inet(4), ip(4), me(4), netintro(4), protocols(5), ifconfig(8), sysctl(8)
A description of GRE encapsulation can be found in RFC 2784 and RFC 2890.
AUTHORS
Andrey V. Elsukov <ae@FreeBSD.org>
Heiko W.Rupp <hwr@pilhuhn.de>
BUGS
The current implementation uses the key only for outgoing packets. Incoming packets with a different key or without a key will be treated as
if they would belong to this interface.
The sequence number field also used only for outgoing packets.
BSD
November 7, 2014 BSD