10-27-2005
Configuring networking interfaces on Solaris 10
Hi,
I am trying to configure an ip address, netmask, and default gateway on my solaris machine. For example, in Linux I would do the following command:
#ifconfig eth0 xx.xx.xx.xx netmask 255.0.0.0
#add route or route add default xxx.xxx.xxx.xxx
In Solaris 10, I believe the commands are similar, but I don't know what my interface is (in the example above it was eth0), but in Solaris 10, I can't figure out what it is. Can someone provide me steps on how to set up my network interface on Solaris 10?
Thanks in advance for your help
9 More Discussions You Might Find Interesting
1. IP Networking
I am trying to network two solaris workstations(ultra sparc 5) at home. what shoud I use to build the one of workstations as a http and ftp server and to network with the other workstation?
(please explain to me in detail.. what kind of software or equipment do I need..)
Thanks
John (1 Reply)
Discussion started by: jung1975
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Have a solaris 9 e420, one onboard nic.
Now I added a quad nic card.
I have never had more than a single interface.
Any help on setting this new card up?
or links?
PLease? ; thanks! (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am attempting to configure my ethernet interface on a Sun Blade 1500. I am testing out my network interface my connecting a crossover cable from my blade to a windows box. I would like to assign an ip address of 10.0.0.2 to "bge0" and netmask of "255.0.0.0". I have typed the following:
... (1 Reply)
Discussion started by: annointed3
1 Replies
4. Solaris
may i know what is the command for configure
new ip, subnet mask and gateway ??
thanks .. (3 Replies)
Discussion started by: Farbegas
3 Replies
5. Solaris
I have just installed Solaris 10 for x86. The install seemed to have worked fine, and I have configured my hostname and am able to login and do whatever. However, networking does not seem to have been installed. I have a router which assigns ip address via DHCP. I would have thought Solaris would... (5 Replies)
Discussion started by: Phobos
5 Replies
6. IP Networking
Hi all
Right, i need to admit Im c4p on networking. I hate it, always have, always will. Here's my problem
Ive got 3 hosts. A B and C. I need to directly contact host C from host A, but at the moment I have to ssh on to B, to then ssh on to C.
so, I need to set up host b, to forward... (3 Replies)
Discussion started by: sbk1972
3 Replies
7. Solaris
Hi,
I have installed two solaris boxes in an VM.
First box is 10-1
Has two interfaces and in connected briged to the lan an d connected internal to an virtual lan.
Second box is 10-2
Has one interface.
Now what I wanted to do is a setup so that 10-2 connects through 10-1 to the lan.... (3 Replies)
Discussion started by: jld
3 Replies
8. Solaris
Hello,
I have a machine with Solaris 8, and it has multiple interfaces that are connected to the same network which means they all have metric 0 (1 hop) to the default gateway.
assume:
* e1000g0: 10.1.1.70
* e1000g2: 10.1.1.72
* e1000g4: 10.1.1.74
* e1000g5: 10.1.1.76
* gateway:... (11 Replies)
Discussion started by: aeg
11 Replies
9. Solaris
Hi all,
Just istalled Solaris 11.
Want to configure network interfaces and got some problems:
#dladm show-phys
#
#dladm show-link
#
If i run ifconfig -a, i am getting 2 lo0 (loopback) interfaces and thats all.
I can't enable interface, can't list it, can't assign IP to it.
Can... (2 Replies)
Discussion started by: nypreH
2 Replies
route(8c) route(8c)
Name
route - manually manipulate the routing tables
Syntax
/etc/route [ -f ] [ -n ] command args ]
Description
The program is used to manipulate the network routing tables manually. However, normally it is not needed, as the system routing table
management daemon, should tend to this task.
The program accepts two commands: add, to add a route and delete, to delete a route.
All commands have the following syntax:
/etc/route command [ net | host ] destination gateway [ metric ]
In this syntax, destination is a host or network for which the route is to, gateway is the gateway to which packets should be addressed,
and metric is an optional count indicating the number of hops to the destination. The metric is required for add commands. It must be
zero if the destination is on a directly-attached network, and nonzero if the route utilizes one or more gateways.
When adding a route with metric 0, the gateway given is the address of this host on the common network, indicating the interface to be used
for transmission. Routes to a particular host are distinguished from routes to a network by interpreting the Internet address associated
with destination. The optional keywords net and host force the destination to be interpreted as a network or host, respectively. If the
destination has a local address part of INADDR_ANY, then the route is assumed to be to a network. Otherwise, it is presumed to be a route
to a host. If the route is to a destination connected via a gateway, the metric should be greater than 0. All symbolic names specified
for a destination or gateway are looked up first as a host name using If this lookup fails, is then used to interpret the name as that of a
network.
The command uses a raw socket and the SIOCADDRT and SIOCDELRT ioctls to do its work. As such, only the superuser can modify the routing
tables.
Options
-f Flushes the routing tables of all gateway entries. If is used with one of the commands described above, the tables are flushed prior
to the command's application.
-n Prevents attempts to print host and network names symbolically when reporting actions.
Restrictions
The change operation is not implemented. Therefore, you should first add the new route, and then delete the old one.
Diagnostics
add [host | network] %s: gateway %s flags %x"
The specified route is being added to the tables. The values printed are from the routing table entry supplied in the ioctl call. If the
gateway address used was not the primary address of the gateway (the first one returned by the gateway address is printed numerically as
well as symbolically.
delete [ host | network] %s: gateway %s flags %x
The specified route is being deleted from the tables. The values printed are from the routing table entry supplied in the ioctl call. If
the gateway address used was not the primary address of the gateway (the first one returned by the gateway address is printed numerically
as well as symbolically.
%s %s done
When the flag is specified, each routing table entry that is deleted is indicated with a message of this form.
Network is unreachable
An attempt to add a route failed because the gateway listed was not on a directly-connected network. The next-hop gateway must be given.
not in table
A delete operation was attempted for an entry which was not present in the tables.
routing table overflow
An add operation was attempted, but the system was low on resources and was unable to allocate memory to create the new entry.
See Also
intro(4n), routed(8c)
route(8c)