New ip setting


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers New ip setting
# 1  
Old 01-29-2005
New ip setting

I want to change the IPsetting and the broadcast setting.
With ipconfig I get this:
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet xx.17x.18x.xx netmask fffffff0 broadcast xx.17x.18x.xx
ether yy:0:yy:b6:yy:xx

What command(squence) do I use to change the inet and broadcast? Or where do I find that sequence?

Does changing this automatcally change the telnet IP as well?
# 2  
Old 01-29-2005
Quote:
Originally Posted by kuultak
I want to change the IPsetting and the broadcast setting.
With ipconfig I get this:
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet xx.17x.18x.xx netmask fffffff0 broadcast xx.17x.18x.xx
ether yy:0:yy:b6:yy:xx

What command(squence) do I use to change the inet and broadcast? Or where do I find that sequence?

Does changing this automatcally change the telnet IP as well?
Yes, it does.

The command you need is ifconfig. Depending on the OS you are using, there may a startup script or file that will set this information for you. You need to find that script and make your changes there.
# 3  
Old 01-29-2005
Based on the interface (hme0) I am assuming Solaris.

To do this command line:
# ifconfig hme0 xx.17x.18x.xx netmask 255.255.255.0 broadcast xxx.xxx.xxx.xxx up

Under Solaris I am not sure where you set the broadcast (and no longer have a Solaris box at home to check). I *think* it is simply the highest IP is the subnet as defined by the netmask. If the netmask is wrong, it can be changed in /ete/netmasks

The sledge hammer way to do this is with sysunconfig
BE warned that this puts the system back to "as new" with regards to network info, root password, etc., and will reboot the box. If the box is using NIS, NIS+, LDAP, and assuming you are not familiar with configuring these, I would suggest not using sysunconfig.
# 4  
Old 01-29-2005
OK thanks.

It's Solaris 8.

Where do I find the mentioned script?

I'll have a look in the Solaris guide monday to see whether I cann get everything straight.
# 5  
Old 01-29-2005
...

well, it's not done by a script in solaris... just edit your /etc/hostname.hme0, and make sure there is the right entry in your /etc/hosts
# cat /etc/hostname.hme0
server
# grep server /etc/hosts
10.0.x.x server server.unix.com

gP
# 6  
Old 01-30-2005
Thanks.

I'll have a look first.
# 7  
Old 01-30-2005
1010101010

Last edited by smigen; 01-31-2005 at 01:20 AM.. Reason: fixed the problem
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Is there a difference between setting a user as nologin and setting it as a role?

Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users. In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies

2. UNIX for Dummies Questions & Answers

Setting PS1

I have set PSI for my prompt using the following command: PS1="${debian_chroot:+($debian_chroot)}\\u@\h:\\\w\a]\ "which produces chrisd@pguk:~]I want to include [ in the beginning but cannot understand the way to do this. Also I want to show only the current directory, not the whole... (4 Replies)
Discussion started by: kristinu
4 Replies

3. UNIX for Dummies Questions & Answers

Setting up Xlaunch

I have a Win7 laptop that I have installed Xming with Xlaunch so that I can remote a Solaris10 server. After the initial install on my Win7 machine what do I need to set and configure to be able to remote Solaris. This is my 3rd day working with Unix. (1 Reply)
Discussion started by: SIFT3R
1 Replies

4. Red Hat

Cronjob setting

Hi there There's a script I would like to run daily every 5 minutes and this job should restart every 12:03AM so it would append to a new file with the following day date format instead of running and updating continuously into one log. I am not sure of the syntaxing, what I did was to set it... (9 Replies)
Discussion started by: hedkandi
9 Replies

5. Shell Programming and Scripting

alias setting

I want to set an alias to connect to sqlplus and also run a command while it it logs in. How can I do that? (4 Replies)
Discussion started by: som.nitk
4 Replies

6. UNIX for Dummies Questions & Answers

Need some help on setting up rsync

I need to "sync" a directory from a prod server to a test server. Rsync is working but it prompts for a password and I'd like to automate the process. The directory on the prod/source server is owned by root, and some subdirectories are only readable by root. On the test/destination servers, I can... (1 Reply)
Discussion started by: LAToro
1 Replies

7. Shell Programming and Scripting

Setting the date.

I am modifying some script and need to have the script reflect the current date. I have the script below. In the section yy="2010",mm="07", dd="12" What would I need to change to have the script automatically input the current year month & date instead of manually updated the script daily? ... (2 Replies)
Discussion started by: libertyforall
2 Replies

8. UNIX for Dummies Questions & Answers

UMASK setting

How can we set the Sticky bit in the umask itself. Please help me :confused: I tried to set like umask 1000 but when I run umask, the value of umask is 00 (0 Replies)
Discussion started by: geniman2004
0 Replies

9. Shell Programming and Scripting

Setting Ulimit

How do i set ulimit for user (4 Replies)
Discussion started by: Krrishv
4 Replies

10. Debian

Setting Routes and such

Ok, I made changes to my routing tables..... which file do I modify to make the routes initialize correctly when the machine boots up? I work with all flavours of Unix/Linux... but this is an older box... Linux, Release 2.2.14-5.0. I did a grep for the default route in /etc, but didnt find... (2 Replies)
Discussion started by: djsal
2 Replies
Login or Register to Ask a Question