Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Configuring networking interfaces on Solaris 10 Post 87742 by annointed3 on Thursday 27th of October 2005 09:44:21 AM
Old 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 Smilie
 

9 More Discussions You Might Find Interesting

1. IP Networking

networking between two solaris workstations

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

adding interfaces in solaris 9

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

Configuring networking interface on Sun Blade 1500

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

solaris networking

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

Solaris 10 Networking

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

Solaris Networking - help

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

Solaris networking

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

Solaris 8: Multiple primary interfaces connected to the same network

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

Configuring network interfaces in Solaris11

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
IFCONFIG.IF(5)						      BSD File Formats Manual						    IFCONFIG.IF(5)

NAME
ifconfig.if -- interface-specific configuration files or variables DESCRIPTION
The ifconfig.if files or variables contain information regarding the configuration of each network interface. ifconfig.if is processed by /etc/rc.d/network at system boot time. For each interface (nnX) that is to be configured, there should be either an ifconfig_nnX variable in rc.conf(5), or an /etc/ifconfig.nnX file (such as the ifconfig_fxp0 variable or the /etc/ifconfig.fxp0 file for the fxp0 interface). Only characters allowed in sh(1) variables names should be used for nnX (ascii(7) uppercase and lowercase letters, digits, and underscore). The variable or file will get evaluated only if the interface exists on the system. Multiple lines can be placed in a variable or file, and will be evaluated sequentially. In the case of a variable, semicolons may be used instead of newlines, as described in rc.conf(5). <backslash><newline> sequences in files are ignored, so long logical lines may be made up of several shorter physical lines. Normally, a line will be evaluated as command line arguments to ifconfig(8). ``ifconfig nnX'' will be prepended on evaluation. Arguments with embedded shell metacharacters should be quoted in sh(1) style. If the line is equal to ``dhcp'', dhcpcd(8) will be started for the interface. However, it is instead recommended that dhcpcd is set to true in rc.conf(5) and any per interface configuration or restriction is done in dhcpcd.conf(5). If a line is empty, or starts with '#', the line will be ignored as comment. If a line starts with '!', the rest of line will get evaluated as shell script fragment. Shell variables declared in /etc/rc.d/network are accessible but may not be modified. The most useful variable is $int, as it will be bound to the interface being configured with the file. For example, the following illustrates static interface configuration: # IPv4, with an alias inet 10.0.1.12 netmask 255.255.255.0 media 100baseTX inet 10.0.1.13 netmask 255.255.255.255 alias # let us have IPv6 address on this interface inet6 2001:db8::1 prefixlen 64 alias # have subnet router anycast address too inet6 2001:db8:: prefixlen 64 alias anycast The following illustrates dynamic configuration setup with dhclient(8) and rtsol(8): up # autoconfigure IPv4 address !dhclient $int # autoconfigure IPv6 address. Be sure to set $ip6mode to autohost. !rtsol $int The following example sets a network name for a wireless interface (using quotes to protect special characters in the name), and starts dhcpcd(8): ssid 'my network' dhcp The following example is for dynamically-created pseudo interfaces like gif(4). Earlier versions of /etc/rc.d/network required an explicit 'create' command for such interfaces, but creation is now handled automatically. up # configure IPv6 default route toward the interface !route add -inet6 default ::1 !route change -inet6 default -ifp $int FILES
/etc/rc.d/network SEE ALSO
rc.conf(5), ifconfig(8) BSD
April 7, 2011 BSD
All times are GMT -4. The time now is 09:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy