LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can Someone Please Post "The Complete Idiots' guide to samba networking!' ??? (https://www.linuxquestions.org/questions/linux-networking-3/can-someone-please-post-the-complete-idiots-guide-to-samba-networking-53040/)

shassouneh 04-08-2003 12:25 AM

ipconfig ????

Code:


linux:~ # ipconfig
-bash: ipconfig: command not found
linux:~ #


shassouneh 04-08-2003 12:26 AM

Or do you mean Winbloze's ipconfig /all ???

shassouneh 04-08-2003 12:39 AM

Here is what Windows XP reports when issuing the ipconfig /all command:

Code:


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

E:\Documents and Settings\Samer.COMP>ipconfig /all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : comp
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : davis.tsunamiusa.com
        Description . . . . . . . . . . . : 3Com EtherLink 10/100 PCI TX NIC (3C
905B-TX)
        Physical Address. . . . . . . . . : 00-10-4B-0C-91-84
        Dhcp Enabled. . . . . . . . . . . : Yes
        Autoconfiguration Enabled . . . . : Yes
        IP Address. . . . . . . . . . . . : 208.152.2.199
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 208.152.2.1
        DHCP Server . . . . . . . . . . . : 208.152.0.9
        DNS Servers . . . . . . . . . . . : 12.127.17.72
                                            207.108.48.1
        Lease Obtained. . . . . . . . . . : Saturday, April 05, 2003 5:25:19 AM
        Lease Expires . . . . . . . . . . : Saturday, April 12, 2003 5:25:19 AM

E:\Documents and Settings\Samer.COMP>


aherm 04-08-2003 11:19 AM

Let us study a little about IP network to make things clear. Each computer in IP network interface has a unique address = an IP address. An IP address is a four byte long number, each byte contains maximum of three decimal numbers, every byte is separated with dot. Each byte is eight bits and can be any number between 0 and 255.

This is my IP network as an example:
10 linux computers each has 1 NIC = 192.168.1.100 ... 192.168.1.110
1 server 2 NICs 1 for grabing leased IP and 1 for the dhcp =192.168.1.1
10 windows computers 192.168.1.200 ... 192.168.210

As we can see IP address = net.work.address. + hostaddress
Thus all my computers (including server/gateway/router) have this same network address: 192.168.1.x

Yes, they can talk to each other, sharing files, printer, scanner, CDRW, internet access because they have same network address but have a unique host address. The entire netmask for this private class C network address is 255.255.255.0 and broadcast address to communicate with all the hosts in this network is 255.255.255.255

I have a Mac notebook, the address is 192.168.4.111 and it cannot commmunicate to any of computer in that 192.168.1.x network why?

See
Your linux and windows addresses are on the different network island:
Linux inet addr: 208.152.6.101 -> has 208.152.6.x network address
Where as other computers -> have 208.152.2.x network address:
Windows IP Address: 208.152.2.199
Other windows addr: 208.152.2.121
Other windows addr e.g. as printer server: 208.152.2.250
Default Gateway or router: 208.152.2.1

Suggestion:
Change your linux network adress to 208.152.2.x
Goodluck ;-)


And have a lot more fun :-)

tangle 04-08-2003 01:43 PM

http://www.valkyrie.net/~tangle/comp...s/smb_conf.htm

shassouneh 04-08-2003 02:41 PM

I got Good News and Bad News
 
Well I have some good news and some terrible news.

The good news is changing the Ip on the linux machine to 208.152.2.111 solves the networking problem completely! (y) :)

The Bad News is by changing this IP the LAn networking is the ONLY thing I can do. I lose all online access to the internet, etc...!!!

If I set the setup back to DHCP it assigns the IP 208.152.6.101 again.

Van Anyone help me solve this problem once and for all?

aherm 04-08-2003 03:34 PM

This is the third copy and paste from my earlier posts (next time better brows other similar threads)

OK this is some example on how to setup mixed linux-windows network. Example one is my office network with a router, the other one is using a server with 2 NICs and a switch or hub at my house.

I use this command as root at my linux machine to find out the current IP address:
ifconfig
I use this command on my windows machine:
ipconfig

My office hardware setup: (-) denotes single cable (=) many cables:
wall outlet - cat5 cable - outer port [router] inner ports = cat cables = NIC on each computers hooked to the router's port.
All of the computers are setup using dhcp. The router is setup using one of the computer's browser to get leased internet IP from outside automatically, and to give IP numbers to any computer hooked on its ports using dhcp.
These are their IP addresses:
router = 192.168.1.1 (static address that gives IP addresses to those computers)
- comp1 192.168.1.100 (dynamic address signed by the router)
- comp2 192.168.1.101 (dynamic address signed by the router)
...
- comp9 192.168.1.109 (dynamic address signed by the router)


I cannot afford a personal router for my house network, instead I buy a switch or a hub and two NICs for one of the computer to make it an internet server.

My home hardware setup: (-) denotes single cable (=) many cables:
telephone or cable outlet - cat3 or modem cable - xDSL modem - cat5 cable- NIC1 of the [server] to get leased internet IP address using pppoe and NIC2 to give IP numbers to any computer at my house - cat5 cable - swith or hub = cat5 cables = NIC of each computers that want internet access via the switch or hub.
This are their IP addresses:
server = 192.168.1.1 (static address that gives IP addresses to those computers)
- comp1 192.168.1.100 (dynamic address signed by the server)
- comp2 192.168.1.101 (dynamic address signed by the server)
...
- comp9 192.168.1.109 (dynamic address signed by the server)


That's it for the hardware setup. You can try it which one to use ;-)

Sould any problem appears somebody will help you with that. Don't forget to give your hardware setup and your linux ifconfig, route and windows ipconfig /all result on your post.
Good luck.



Have a lot of fun :-)

bax 04-08-2003 05:44 PM

It sounds like when you changed your IP on your Linux box, you forgot DNS. Can you run dig? Anyway, I think you're very close. Check out those network settings on your Linux box-default gateway, DNS. Where is your DHCP server at? Your ISP or at home?

shassouneh 04-09-2003 12:14 AM

aherm, you completely lost me. too much detail LOL.

bax, the DHCP is managed entirely by my ISP. As for DNS the DNS server addresses get fed in by DHCP (as in the DHCP server forces the machine to use some DNS server numbers). So I guess my problem is probably related to DNS. I will double check my settings.
Thanx.

bax 04-09-2003 08:01 AM

Yeah, it sounds like when you changed your IP, DNS got fudged up. Is this a business network?

shassouneh 04-09-2003 09:10 AM

no this is a simple home LAN. The simplest setup you can think of really. A hub, two PCs. (actually one pc, one laptop).

aherm 04-09-2003 01:30 PM

Just add another Network Card to your PC ;-)


Have a lot more fun :-)

jmarsh 04-09-2003 02:50 PM

shassouneh,

send me your email. i will send you a document i created to get samba and xp to work together. i have my samba machine with a 204.xxx.xxx.xxx ip address and my xp box with a 192.xxx.xxx.xxx ip. they have no problem seeing each other. you shouldnt have to change ip addresses. here is my email address. jmjr56@hotmail.com. just email me and i will send u the doc.

shassouneh 04-10-2003 09:08 AM

thanx for the generous offer jmarsh. Check your email :)

jmarsh 04-10-2003 02:41 PM

i havent received an email from you......................JMJR56@HOTMAIL.COM.......................that should help you


All times are GMT -5. The time now is 09:37 PM.