IP settings

Newbie Spellweaver
Joined
Apr 3, 2009
Messages
14
Reaction score
1
Hi, i'm trying to make new configuratioin. I've router and 2 computers. On one of computers there is CentOS and database. Unfortunately I dunno how to set up my IPs.
Dunno what options in router configuration should I check.

My router IP: 192.168.1.1

So, when I'm installing CentOS in network settings I type:
IP: 192.168.1.10
Netmask: 255.255.255.0 (as checked in windows)
Default gateway: 192.168.1.1

My widnows IP: 192.168.1.2

When I'm trying to ping windows it says: Host unreachable.

I want to make this server only for LAN computers. Maybe you can suggest me what is wrong and what options should I check in router configuration.

Thanks in advance.
 
Last edited:
Those settings look correct but i probably would check the defaut gateway against "ipconfig /all" in windows.

Other than that check the windows firewall (and any other firewall) and the iptables service on centos (type "setup" to access the wizard).

Another solution is to switch centos networking to auto (dhcp) and centos will ask your router for the correct settings. Once done you can check them and manually set to whatever it was assigned so it doesn't change.
 
Upvote 0
Hi, i tried and fail again.

After typing "ipconfig /all" it shows me this about my lan conection:

Code:
   Adres IPv4. . . . . . . :192.168.1.2(Preferowane)
   Maska podsieci. . . . . . . . . . : 255.255.255.0  <--Netmask
   Dzierżawa uzyskana. . . . . . . . : 31 marca 2010 13:51:44
   Dzierżawa wygasa. . . . . . . . . : 1 kwietnia 2010 13:51:43
   Brama domyślna. . . . . . . . . . : 192.168.1.1  <--- Deflaut gateway
   Serwer DHCP . . . . . . . . . . . : 192.168.1.1
   Identyfikator IAID DHCPv6 . . . . : 234887757
   Identyfikator DUID klienta DHCPv6 : 00-01-00-01-12-8D-D1-86-00-1A-4D-45-8B-DE

   Serwery DNS . . . . . . . . . . . : 192.168.1.1
   NetBIOS przez Tcpip . . . . . . . : Włączony

I set my network to NAT and DHCP. After reboot I got IP: 192.168.150.128, that means I got IP from VM conection:


Code:
 Opis. . . . . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet 8
 Adres fizyczny. . . . . . . . . . : 00-50-56-C0-00-08
 DHCP włączone . . . . . . . . . . : Tak
 Autokonfiguracja włączona . . . . : Tak
 Adres IPv6 połączenia lokalnego . : fe80::a000:8308:d4bc:8438%27(Preferowane)

 Adres IPv4. . . . . . . . . . . . . : 192.168.150.1(Preferowane)
 Maska podsieci. . . . . . . . . . : 255.255.255.0
 Dzierżawa uzyskana. . . . . . . . : 31 marca 2010 13:52:08
 Dzierżawa wygasa. . . . . . . . . : 31 marca 2010 14:52:07
 Brama domyślna. . . . . . . . . . :
 Serwer DHCP . . . . . . . . . . . : 192.168.150.254
 Identyfikator IAID DHCPv6 . . . . : 620777558
 Identyfikator DUID klienta DHCPv6 : 00-01-00-01-12-8D-D1-86-00-1A-4D-45-8B-DE

 Serwery DNS . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                     fec0:0:0:ffff::2%1
                                     fec0:0:0:ffff::3%1
 Podstawowy serwer WINS. . . . . . : 192.168.150.2
 NetBIOS przez Tcpip . . . . . . . : Włączony

Maybe I should try to set off this conection?

With that IP gained from DHCP I can ping my router 192.168.1.1, and ping from Windows WM, but can't ping my Windows(192.169.1.2) from WM and WM from other comupters.

What type of Network Adapter should I check (NAT/bridged/etc.)?
Should I set off Firewall on router?
Maybe you can suggest what option should be set off/on?

Thanks in advance.
 
Upvote 0
set your vmw >>centos > network > to bridge
in vmw centos > login with root > command type : setup
follow wizard to setup network for centos again >>

your ip can style as: 192.168.1.x ( 1 to 254 > but you set it range 100 to 250 > like : 192.168.1.100>>>>> dont same as other com's ip on your lan)
255.255.255.0 <--Netmask
192.168.1.1 <--- Deflaut gateway
192.168.1.1 Serwery DNS

i was tested .
 
Last edited:
Upvote 0
Back