LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-16-2009, 09:48 AM   #1
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Rep: Reputation: 15
brazilfw in vmware, wont connect wan port


I've been working on this problem for 2 days now. I've tried everything I can think of. I've narrowed the problem down, and it must be in the software. I've swapped network cards, reinstalled the os, unplugged from the cable modem and plugged into a local dhcp server (linksys router)

I just put together a new computer I'd like to run as a server, to consolidate some other servers I have at home. I installed centos 5 and updated it. I have 2 network cards, a belkin and a netgear. it has onboard too, but that's another issue, I can't get linux to recognize it. if I activate the wan card on the host os, it works fine, but that isn't what I want. I only want that card to be used by brazilfw installed on vmware. I've had this working 2 years ago, but I want to use up to date software. I leave the wan card deactivated on the host os and let brazilfw connect to it, but it keeps saying it's not connected. I used to use 2 netgear cards, the same model, in my brazilfw router, but I had this same problem with vmware, so I swapped one out for a belkin. I have also tried swapping the ports, and only plugging in the wan card and not the lan one.

what can I do to narrow down the problem more?
 
Old 04-17-2009, 12:08 PM   #2
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
is it a problem with the host os? what would prevent me from using 2 nics in one system? it is frustrating, but I always run into some stupid problem when I'm using linux. and we wonder why linux isn't more popular.. I try to use xen and I have worse problems.

Last edited by mattsoftnet; 04-17-2009 at 12:09 PM.
 
Old 04-17-2009, 01:07 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Maybe others do, but I completely fail to make anything of your "problems". Part of that probably is due to you talking about problems instead of showing configuration, (error) output and diagnostic commands and output. For starters you say Linux doesn't recognise your internal card but you fail to post any chipset info, kernel modules, dmesg output, whatever. You say you don't want to activate the "wan card" (whatever the arbitrary designation may mean) but you want the VMware guest to be able to use it anyway regardless of a vmnet not being able to bridge over a down device. Then you say you have the same setup but why you don't diff configs is beyond me...
 
Old 04-17-2009, 03:43 PM   #4
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
here is the motherboard I have http://www.tigerdirect.com/applicati...3ORDER-_-Deals

here do I find the logs that I should post? it hasn't given me an error prompt. I want to run a linux based router in vmware. I have 2 pci nics installed. one of them is set up like normal with a static ip. that one works fine. the second one is plugged directly into a cable modem and is left deactivated on the host os. I set up a second bridge for this card to be used only with the brazilfw vm. what it should do is let brazilfw access the network card that has the cable modem plugged into it and only assign one wan ip to that vm and not to the host os. I have had it working on older versions of the software a few years ago, and this is how it should be set up to work right, but in brazilfw, it does not come online, it just gives the status "ready" instead of "up". is this a better explanation? what can I try from here?



Quote:
Originally Posted by unSpawn View Post
Maybe others do, but I completely fail to make anything of your "problems". Part of that probably is due to you talking about problems instead of showing configuration, (error) output and diagnostic commands and output. For starters you say Linux doesn't recognise your internal card but you fail to post any chipset info, kernel modules, dmesg output, whatever. You say you don't want to activate the "wan card" (whatever the arbitrary designation may mean) but you want the VMware guest to be able to use it anyway regardless of a vmnet not being able to bridge over a down device. Then you say you have the same setup but why you don't diff configs is beyond me...
 
Old 04-17-2009, 06:45 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
What I would do is ascertain the host works as advertised before moving on. You could start by posting 'lspci' and post-bootup 'dmesg' output. Thanks for the link but I don't want to read specs as they're advertised but as Linux would show and recognise them (or not).
 
Old 04-19-2009, 11:28 AM   #6
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
after more reading and messing with it a while longer, I figured out that the second nic is communicating with the vm if I set a static ip, but it wont grab an ip from the dhcp servers no matter what I try. I don't know what could be blocking it. the firewall and selinux are both disabled in the host os. I've tried using my isp's dhcp server with the cable modem, and I've tried plugging into a known working linksys router for a dhcp server. never gets an ip address. ideas?


Quote:
Originally Posted by unSpawn View Post
What I would do is ascertain the host works as advertised before moving on. You could start by posting 'lspci' and post-bootup 'dmesg' output. Thanks for the link but I don't want to read specs as they're advertised but as Linux would show and recognise them (or not).

00:00.0 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a2)
00:01.0 ISA bridge: nVidia Corporation MCP78S [GeForce 8200] LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP78S [GeForce 8200] SMBus (rev a1)
00:01.2 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
00:01.3 Co-processor: nVidia Corporation MCP78S [GeForce 8200] Co-Processor (rev a2)
00:01.4 RAM memory: nVidia Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
00:02.0 USB Controller: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1)
00:04.0 USB Controller: nVidia Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1)
00:04.1 USB Controller: nVidia Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1)
00:06.0 IDE interface: nVidia Corporation MCP78S [GeForce 8200] IDE (rev a1)
00:07.0 Audio device: nVidia Corporation MCP78S [GeForce 8200] High Definition Audio (rev a1)
00:08.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1)
00:09.0 IDE interface: nVidia Corporation MCP78S [GeForce 8200] SATA Controller (non-AHCI mode) (rev a2)
00:0a.0 Ethernet controller: nVidia Corporation MCP78S [GeForce 8200] Ethernet (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
00:10.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
00:12.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1)
00:14.0 PCI bridge: nVidia Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:08.0 Ethernet controller: Lite-On Communications Inc LNE100TX (rev 21)
01:09.0 Ethernet controller: Lite-On Communications Inc LNE100TX (rev 20)
02:00.0 VGA compatible controller: nVidia Corporation GeForce 8200 (rev a2)




the readout from dmesg was a little long, so it's in this file
http://schematicsforfree.com/_files/dmesg.txt
 
Old 04-19-2009, 11:46 AM   #7
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
on a side note, I did get the onboard ethernet working. I found some information online about using forcedeth. I tried using this onboard ethernet to try dhcp, but it still wont work in the vm. it does, however, work on the host os.

here's a question. if the host os can get an ip address from the cable modem with dhcp, can I set up a firewall on the host to block all traffic from both directions, then set up a nat on that eth to allow the vm access to it? this isn't the best way, and I would rather get the bridge to work, but I guess this might work as an alternative.

when I was researching xen, I found a script mod to do what I'm trying to do on vmware. I don't think any mods have to be done to vmware to do this, because I've had it working in the past. I want the vm to have exclusive access to the wan nic, and be hidden from the host.

Last edited by mattsoftnet; 04-19-2009 at 11:48 AM.
 
Old 04-19-2009, 06:29 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by mattsoftnet View Post
after more reading and messing with it a while longer, I figured out that the second nic is communicating with the vm if I set a static ip, but it wont grab an ip from the dhcp servers no matter what I try. I don't know what could be blocking it. the firewall and selinux are both disabled in the host os. I've tried using my isp's dhcp server with the cable modem, and I've tried plugging into a known working linksys router for a dhcp server. never gets an ip address. ideas?
Ah. Now you're writing it that way I kind of get what you're trying to do. I think. You probably don't get multiple IP addresses from your ISP, so leases other than the first host ethernet device might be (correctly) ignored by your ISP. I can't comment on your Linksys router DHCPd, the logs on the router should show if a DHCP request was found and aswered. Try this: from the host ethernet device that's connected to the cablemodem (make a backup and) remove all network configuration (or configure it with a LAN range nonexistent IP address) then bring it up. In VMware set the guest for bridging (maybe configure the device with the MAC address of the host ethernet device?) and bring it up. Make sure to tie any next guest VM NIC to another vmnet than the 1st device, that way VMware can use its own DHCPd. If the above setup works, and why shouldn't it, then you don't need to disable SE Linux as if has nothing to do with this all. If the above setup works then you also won't need a firewall because the device won't accept traffic anyway. If you want to see that for yourself, bring the device up in promiscuous mode and run tcpdump. Keep an eye on logs like /var/log/vmware/vmware-serverd.log (/etc/vmware/vmnet{1,8}/dhcpd/dhcpd.leases), the guest vmware.log and /var/log/messages.
 
Old 04-22-2009, 04:11 PM   #9
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
I got it! I don't know if it might be a bug, but the only way I could get it to work was to trick it. I set a static ip to the wan eth0 card on the host os and gave it an ip address on an unused subnet. that's the only way the dhcp client will work on the vm. thanks for your help. I'm sure this thread will be useful to other people with the same problem.
 
Old 04-22-2009, 04:32 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by mattsoftnet View Post
I don't know if it might be a bug, but the only way I could get it to work was to trick it.
Well, that's the whole point...


Quote:
Originally Posted by mattsoftnet View Post
thanks for your help.
You're welcome. On to stage two...
 
Old 04-22-2009, 04:43 PM   #11
mattsoftnet
Member
 
Registered: Jan 2006
Posts: 120

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
Well, that's the whole point...
You're welcome. On to stage two...
so it really is a bug? what is stage 2? reporting it?
 
Old 04-24-2009, 05:22 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
No, using ethernet devices like you've asked for has it's uses (like hidden syslog servers) but it's not common practice. IMHO it's not a bug. With "stage 2" I just meant moving on to your next challenge. Prolly should have been more clear about that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wan Mini port (PPPOE) amin_bd Linux - Networking 0 05-08-2008 01:33 AM
Can connect to SSH via LAN but not WAN gauge73 Linux - Networking 5 02-08-2007 12:13 AM
VMware clones not seeing the LAN or WAN slang830 Linux - General 0 09-02-2006 05:55 PM
can't access non-port 80 website from WAN jetcollins Linux - General 1 08-02-2005 11:40 AM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration