- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: Centos 7 KVM IP forwarding problem
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Centos 7 KVM IP forwarding problem"
Collapse
-
Originally posted by Stevie Wonder BoySorry this won't work at all. As the client would need to be bridged...
Leave a comment:
-
Originally posted by Stevie Wonder BoyHave you turned off netmanager? I would reboot the dhcpd service as well.
It seems to happen like this.
Boot machine. Network service fails to start. However the em2 ethernet interface still comes up.
Then in libvirt, the virbr01 (virtual bridge that does the nat stuff) fails to come up also.
Then start the network service by CLI and it all comes back online. At least that was how it seemed.
Now virbr01 won't come back online at all.
Failed to start the interface. Unspecified error. Interface virbr01 failed to become active. Possible disconnected cable.
Leave a comment:
-
I think you should set up the Host to get its IP from DHCP on the local network and the Guest to do the same, if you are setting up DCHPD on the host and there's another DHCPD server on the network it can see it's a world of pain with DHCP Scopes, option 66 etc and helpers on routers......
Been there with a replacement xCAT server that gave out DHCP to build Linux HPC nodes, had to get the network guys to help with the 'helper' business...
I'm assuming this a box u have plugged into ClientCos network?
Leave a comment:
-
And it's busted again
My mistake was going for lunch.
Installed windows updates on the VM and rebooted and now it's getting 169.xxx as the ip address
I think KVM is flaky
Leave a comment:
-
Originally posted by stek View PostWhats issuing DHCP ips? The host or another DHCP server in the network?
I set up the DHCP range to be 10.0.0.2 - 254.
I have since deleted the Virtual network and started over.
When I tell it the IP address is 10.0.0.1/24 it then defaults the start of the DHCP range to 10.0.0.128. Lawd knows why.
So I left it alone as it knows far better than me. And now it works.
The odd thing is though that the first guest gets .163 as a lease
Leave a comment:
-
Originally posted by suityou01 View PostYes.
So I managed to configure a NAT virtual network for the hypervisor. The only problem is now that the guests don't get a DHCP address.
DHCP is configured correctly as far as I can see in KVM.
I turned off iptables again in case it was blocking DHCP requests.
So it seems KVM creates it's on virtual bridge when you create the virtual natted network through the KVM front end. And seemingly this configuration is creates looks ok, it has a DHCP section in the config file.
But the client doesn't get an IP address.
One could really go off Linux, but only a bad workman ....
Leave a comment:
-
Originally posted by stek View Postdid u say the host is natted and uses DHCP? I reckon you set the guest to bridged adapter and let i get its own natted ip from the dhcp server
So I managed to configure a NAT virtual network for the hypervisor. The only problem is now that the guests don't get a DHCP address.
DHCP is configured correctly as far as I can see in KVM.
I turned off iptables again in case it was blocking DHCP requests.
So it seems KVM creates it's on virtual bridge when you create the virtual natted network through the KVM front end. And seemingly this configuration is creates looks ok, it has a DHCP section in the config file.
But the client doesn't get an IP address.
One could really go off Linux, but only a bad workman ....
Leave a comment:
-
did u say the host is natted and uses DHCP? I reckon you set the guest to bridged adapter and let i get its own natted ip from the dhcp server
Leave a comment:
-
Back on site this morning. Google has not been my friend on this one as I have found equal amounts of web sites, one saying yes you need a bridged adaptor, others say not.
Of course I have tried with and without but nothing works.
If I could just get a steer on whether KVM NAT requires a bridging adapter to do NAT then it would focus my googling somewhat.
Anyone?
Leave a comment:
-
Cheers SWB.
I'm certain it's me being an idiot.
And what smells bad is that I originally set up a bridged adaptor and turned it off. After all I'm using NAT, right?
Then what I read is that I need a bridged adaptor regardless of using bridged or NAT.
To get an answer on that alone would give me a nudge in the right direction.
Trust me, google has been my friend for many nights before scampering on here.
Leave a comment:
-
Centos 7 KVM IP forwarding problem
I have a Centos 7 server with working wired LAN connection.
Internet access all good.
I have installed KVM, and the Hypervisor has a correctly configured NAT connection, with DHCP.
I have a windows 7 guest, running the VirtIo drivers.
From the guest I can ping the host, and google. However the google pings do not get a response so I am suspecting IP forwarding to be the issue.
According to what I have read from CEntos wiki, ip forwarding is configured correctly.
Iptables and firewall are off. selinux is off.
Linux isn't my strong suit so please help.Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: