06-23-2004
Network settings
Total newbie here!!
How do I view and alter network settings (ip address, subnet mask and default gateway) in UNIX?
Thanks in advance..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
HELP!! How do you change the network setting from auto-duplex to 100 Base T Full Duplex in Red HaT? (1 Reply)
Discussion started by: johnlong
1 Replies
2. Linux
I've been looking for documentation on how to stop this behavior. I have two nics in my system.
eth0: configured manually and as a dhcp server for the local network
eth1: configured w/ dhcp enabled connected to router
dns server addresses keep getting reset every few minutes. i suspect... (0 Replies)
Discussion started by: rbetzen
0 Replies
3. Solaris
I have problem with network settings.
Where i can find network config ? I'm newbie, but i very want learn this OS.
I find :
/etc/hostname.<interface>
/etc/netconfig
/etc/netmasks
/etc/networks
/etc/inet/hosts
But where i can write my IP-address and after reboot i be know that my server... (2 Replies)
Discussion started by: jess_t03
2 Replies
4. IP Networking
hello i have a ubuntu ssh server that i can acess from any of my comnputers but only if they are on the same wireless network as the server. i tested trhis my tehtehring my samsung blackjack to my windows partition and installing openssh to windows it works when windows is on the wireless but no... (1 Reply)
Discussion started by: old noob
1 Replies
5. HP-UX
Hello everyone..
While printing through command line, we can set printing option with -o <lanscape/portrait> to print file in required mode.
But i want to know is there any way we can set this as default behaviour for this printer?
After configuration any script we can modify for this... (0 Replies)
Discussion started by: laxmikant
0 Replies
6. UNIX for Dummies Questions & Answers
Hello Unix Gurus Who I Hope Reads This,
I have quasi-inherited control over a Linux cluster at a university research lab. The post-doc that set it up is gone, and the person in charge of administering the cluster doesn't know a ton about Linux. Amongst other things, I want to use the cluster... (0 Replies)
Discussion started by: mbl
0 Replies
7. Solaris
Hi
i have created a solaris zone but have not yet connected any network cables for this new zone,
can i set the zone up without running the command 'add net' and not adding an ip or physical interface?
i tried to add dummy internet settings and get this
zonecfg:coddr> add net... (4 Replies)
Discussion started by: newbiesolaris10
4 Replies
8. Shell Programming and Scripting
Hello, Newbie question on scripting - I'm looking to create a simple script that will work on RHEL5 that will adjust the network settings: ip address, default gateway, and subnet mask. If anything else needs to be done (service network stop / start) or should be done to make settings active - I... (4 Replies)
Discussion started by: rojizo
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have inherited a Motorola System V R32V3.2 system. The system works fine, but we need to change the network settings. I've changed the IP address successfully, however I'm lost on the gateway and subnet mask. I've changed the default gateway using route -g10.0.8.1, but it changes back to... (7 Replies)
Discussion started by: Tilmar
7 Replies
LEARN ABOUT DEBIAN
ipsec_masktobits
IPSEC_GOODMASK(3) Library Functions Manual IPSEC_GOODMASK(3)
NAME
ipsec_goodmask, ipsec_masktobits, ipsec_bitstomask - check if Internet subnet mask is valid, convert Internet subnet mask to bit count,
convert bit count to Internet subnet mask
SYNOPSIS
#include <freeswan.h>
int goodmask(struct in_addr mask);
int masktobits(struct in_addr mask);
struct in_addr bitstomask(int n);
DESCRIPTION
These functions are obsolete; see ipsec_masktocount(3) for a partial replacement.
Goodmask reports whether the subnet mask is a valid one, i.e. consists of a (possibly empty) sequence of 1s followed by a (possibly empty)
sequence of 0s. Masktobits takes a (valid) subnet mask and returns the number of 1 bits in it. Bitstomask reverses this, returning the
subnet mask corresponding to bit count n.
All masks are in network byte order.
SEE ALSO
inet(3), ipsec_atosubnet(3)
DIAGNOSTICS
Masktobits returns -1 for an invalid mask. Bitstomask returns an all-zeros mask for a negative or out-of-range n.
HISTORY
Written for the FreeS/WAN project by Henry Spencer.
BUGS
The error-reporting convention of bitstomask is less than ideal; zero is sometimes a legitimate mask.
11 June 2001 IPSEC_GOODMASK(3)