How can you explain this - Strange network config


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How can you explain this - Strange network config
# 1  
Old 08-08-2003
Network How can you explain this - Strange network config

First ifconfig command:

ifconfig -a
tu1: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
inet 192.168.3.25 netmask ffffff00 broadcast 192.168.3.255 ipmtu 1500

tu0: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
inet 128.1.51.219 netmask ffff0000 broadcast 128.1.255.255 ipmtu 1500

sl0: flags=11<UP,POINTOPOINT>
inet 128.1.19.2 --> 128.1.19.1 netmask ffff0000 ipmtu 296

lo0: flags=100c89<UP,LOOPBACK,NOARP,MULTICAST,SIMPLEX,NOCHECKSUM>
inet 127.0.0.1 netmask ff000000 ipmtu 1536

ppp0: flags=10<POINTOPOINT>


... then network configuration:

***** DISPLAY NETWORK CONFIGURATION *****

Obtaining hardware and software configuration. Please wait...

Current network adapters on this system:

tu1
tu0
sl0

Current software configuration in /etc/rc.config:

HOSTNAME = wsys235
NUM_NETCONFIG = 3
NETDEV_0 = tu0
IFCONFIG_0 = 128.1.51.219 netmask 255.255.0.0
NETDEV_1 = tu1
IFCONFIG_1 = 192.168.3.25 netmask 255.255.0.0
NETDEV_2 = sl0
IFCONFIG_2 = 128.1.19.2 128.1.19.1 netmask 255.255.0.0
SLIPTTY_2 =
RWHOD =
ROUTED =
ROUTED_FLAGS =
GATED =
GATED_FLAGS =
GATED_OLD =
ROUTER =
MAX_NETDEVS = 24


If you compare those two lists you can see that tu1 network adapter configuration is not equal (subnet is diferent). When I try to change subnet throu netsetup unix give me the message:

Enter the subnet mask in dot notation [255.255.0.0]: 255.255.0.0

You provided an incorrect subnet mask. The mask should be of the form
255.255.n.n where each 'n' is a number less than or equal to 255.
The default netmask is 255.255.0.0

If I left default netmask i get same message. I can only left netsetup by pressing Ctrl+c.

Any ideas! Thanx!
# 2  
Old 08-08-2003
I discovered that class C IP automaticly add netmask parameter and can not be changed.

If I use clas B IP space 128.2.X.X then computer sets subnet to 255.255.0.0

Suggestions?!?
# 3  
Old 08-11-2003
Sorry, but I don't understand what you are trying to do.

Do you want to change subnet masks? If so, which ones to what subnet mask?
# 4  
Old 08-11-2003
OK, here is the explanation:

At first we have this computers in network 192.168.1.xxx (home network) with netmask 255.255.255.0

All computers from network 192.168.1.xxx have access to this computer over network (telnet, FTP).


Now we moved this machine to other network (192.168.3.xxx) whitch is connected throu wireles lan and router to home network.


We changed IP addres of the machine from 192.168.1.25 to 192.168.3.25 and netmask from 255.255.255.0 to 255.255.0.0 so computer can be visible from both loactions (both networks).

But then we saw, that even if we changed netmask to 255.255.0.0 network card stil have netmask 255.255.255.0. We checked it with ifconfig :

tu1: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
inet 192.168.3.25 netmask ffffff00 broadcast 192.168.3.255 ipmtu 1500


So we can not change netmask to what we like.

I hope it is clearer now!

Thanks!
# 5  
Old 08-11-2003
I agree with your OS. The subnet mask should be 255.255.255.0. You have two class C networks connected by a router. You need to install routes connecting the two.
# 6  
Old 08-12-2003
Well, I'm new at UNIX so if you have time write me how to instal routes (gateway for 192.168.3.xx is 192.168.3.1).

But the funny thing is that we have two UNIX machines on that location.

One with
Digital UNIX V4.0B (Rev. 564) have problem I described

ifconfig -a
tu1: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
inet 192.168.3.25 netmask ffffff00 broadcast 192.168.3.255 ipmtu 1500

the other one

Digital UNIX V4.0D (Rev. 878) is working just fine with netmask 255.255.0.0

ifconfig -a
tu1: flags=c63<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,SIMPLEX>
inet 192.168.3.46 netmask ffff0000 broadcast 192.168.255.255 ipmtu 1500
# 7  
Old 08-12-2003
I don't know Digital Unix so I don't know which startup script you need to change.

And if the that box with the wrong netmask really can reach systems in your 192.168.1.0 network, and you aren't installing routes on it, then your network topology must be different than what you described anyway.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Network / global zones (Solaris 10 / 8) config recommendations

I have a few non-globa zones running in a 10.10.xx.xx network on a machine that is on a 192.168.xx.xx network. My goal is to allow each of the non-global zones to communicate to each other while not communicating on the 192.168.xx.xx network. I am using the current version of Solaris 10 in... (7 Replies)
Discussion started by: BradJM
7 Replies

2. Solaris

Network Config on Zone in a Guest LDOM

Solaris for Sparc 11.1 with the latest patches. Created a Guest LDOM with two vnet's net0 and net1, installed a guest whole root, ip exclusive zone that I want to be able to utilize DHCP. I have been able to create the zone but unable to get it to boot because I am unable to assign an anet to it.... (4 Replies)
Discussion started by: os2mac
4 Replies

3. Hardware

HP Compaq 6710 - Strange network problems

Hi gurus, I am experiencing strange networks problems. I am trying to teather internet from HTC Desire S with Android. Basicly I followed those instructions: https://wiki.archlinux.org/index.php/Android_Tethering#Procedure 1.) Enable USB Debugging - Phone: Settings --> Applications -->... (0 Replies)
Discussion started by: wakatana
0 Replies

4. UNIX for Advanced & Expert Users

What files or programs have the ability to change your default network scripts and config

What files or programs have the ability to change your default network scripts and config files? All 3 of these very important files got changed on their own. /etc/sysconfig/network-scripts/ifcfg-wlan0 /etc/sysconfig/networking/devices/ifcfg-wlan0... (4 Replies)
Discussion started by: cokedude
4 Replies

5. IP Networking

Strange network behaviour in Solaris 10

Hi folks how can this be explained? Cheers Spacerat ---- tom@jumpstart:~$ cat /etc/resolv.conf domain acceleris.ch nameserver 192.168.21.230 tom@jumpstart:~$ nslookup Google 192.168.21.230 Server: 192.168.21.230 Address: 192.168.21.230#53 Non-authoritative answer:... (2 Replies)
Discussion started by: Spacerat
2 Replies

6. IP Networking

strange network problem

system config. Red hat ES 5 . multiple network cards. front end and back end networks. Problem: Here is what I have diagnosed on linux 6 .....other machines on the network if you try to get there do not see linux 6, a ping results in “no route to host” message. However the system is running... (4 Replies)
Discussion started by: frankkahle
4 Replies

7. Solaris

[need help] about after running sys-unconfig and config network for v890

hi expert, i had do sys-unconfig for my v890 sparc and had config for eri0 network interface and hostname but after the server bring up i got this error messages : NIS domainname is www.USSDGmdn-4.com starting rpc services: rpcbind keyserv done. Setting netmask of eri0 to 255.255.255.0... (5 Replies)
Discussion started by: bucci
5 Replies

8. UNIX for Dummies Questions & Answers

1st install Suse, network config set up

Hello, I'm a newbie to unix. I just about have the Suse 10.1 installed. During set up it automatically detected components to access the internet. But failed. I lost now. Any ideas? Thank You (2 Replies)
Discussion started by: Nick7269
2 Replies

9. Solaris

network config problem - how to set the server for others to ssh without password

Hi, I want to ssh the linux server without inputting the password, how can I config this server? Thanks in advance! (1 Reply)
Discussion started by: GCTEII
1 Replies
Login or Register to Ask a Question