![]() |
How to change IP in Solaris?
Ok since i restarted working with Sun Solaris, i just forgot how solaris works...
Can anybody tell me how i can change my Solaris IP adress into the LAN-adress. oh and i'm new here!! |
127.0.0.1 is the loopback interface (lo0), you shouldn't change it.
What return these commands ? Code:
ifconfig -a plumb |
i'm working with a KVM-Switch and i put my messages with my Windows pc on the web (yes unfortunally i use windows).
so typing the codes from screen on screen will be a lotta work... |
You do not need to post the whole answer.
The first command is creating interfaces for all NICs recognized by the drivers. The second one is showing the configuration of each interface present, at least lo0 which is always there. Just tell me if you have more than what interface returned, and what is its name. |
Here are a few files worth checking:
/etc/hosts /etc/resolv.conf /etc/defaultroute /etc/hostname.* |
i got the main message edited!
|
Quote:
Anyway, your interface name is rtls0, meaning you have a realtek chip based NIC. First add an entry for your machine in /etc/hosts, eg. Code:
192.168.2.10 lan-dominator-pcFinally, set the address with this command: Code:
ifconfig rtls0 192.168.2.10 upJust search defaultrouter and nsswitch.conf in this forum. I'm sure I already explained that a half a dozen times, and other before me. |
ehm my lan has ip range 192.168.2.100 not 10 (my modem is a router to)
|
Quote:
Quote:
As stated, 192.168.2.10 was an example of setting, not necessarily yours. Quote:
|
8-( i don't have the file "defaultroute"
Can i create it and/or what should be written? |
Quote:
I believe mdhmi was thinking about /etc/defaultrouter. Quote:
"man defaultrouter" if you are unsure. |
ok can you give me a website or full mail with all the things i should do to make a full internet connection.
Like the mods towards adress, subnet, router, etc.. greetz |
All you need is an IP connection to your Router (I belive you have it now), defaultroute set (please tell what you do not understand if needed), and DNS enabled and set.
/etc/nsswitch.conf must contain this line: hosts files dns /etc/resolv.conf must contain at least this line nameserver a.b.c.d where a.b.c.d is the IP address of your DNS server (usually the one your ISP is telling you). Alternatively, you can use DHCP and all this should be set automatically with recent Solaris releases. |
How do i configure my DHCP??
|
Is there a DHCP server already configured on your network ?
|
| All times are GMT -5. The time now is 05:59 PM. |