Ubuntu :: Find IP Addy / Subnet Mask / Gateway?

Jan 18, 2010

How do i find my internet address, subnet mask, gateway,etc in Ubuntu?

View 1 Replies


ADVERTISEMENT

General :: Script To Covert Binary Value Into Subnet Mask?

Feb 11, 2010

for providing an earlier solution from which I have modified and butchered the below script.The intended purpose of this script is to take a subnet mask for example 255.255.255.0 and turn it into the corresponding wildcard mask value in this case it would be /24I have got to the point where I have the binary value, the script is

Code:
#!/bin/sh
#takes mask from ifconfig

[code]...

View 4 Replies View Related

Programming :: Shell Script And Administration Of A System - Change Or Set The IP Address And Subnet Mask

Aug 26, 2010

tasks of an administrative level that we can use Shell Script to automate them. It's a kind of homework for me to figure out how to automate those tasks. Using PHP and Shell Script design and develop a Web Interface to change or set the IP Address and Subnet Mask of the UNIX / Linux System. The related services must be restarted automatically for the new IP Address and Subnet Mask to take effect. No user name and password should be asked for when using that Web Interface. How would you do it?

View 10 Replies View Related

Ubuntu Networking :: Change Subnet Mask "ONLY", Without Touching Any Other Setting?

Apr 5, 2010

I am using ubuntu Lucid and connected to a network with windows machines.Our network admin changed some settings in the network, and all machines need to change their subnet masks to access local machines (e.g. I am getting "unable to mount" message when I try to connect other Windows PC's on the network.)

If I open the connections panel, and "Edit" the "Auto eth0", I can get: IPv4 Settings -> Method -> Manual -> Addresses -> Add .And I am pretty sure I will put new subnet mask address into "Netmask" box, what to put others? Namely:

IP Address, Netmask, Gateway and below:
DNS Servers, Search Domains

I can get some info about my network connection by right clicking network icon on the panel, and select "Connection Information" Tried to fill manual settings with some of those info (the ones made some sense to me) but I still cannot mount windows network drives, plus my internet connection dies.So, is there any way to change Subnet Mask "ONLY", without touching any other setting.

View 2 Replies View Related

Networking :: Gateway In Other Subnet

Jan 1, 2011

I've rent a server from a Germany data center,They use a single IP as their gateway that is not in range of my servers IP,Strangly server is working well and when I use 'route -n' command the gateway which is in other subnet appears properly./etc/sysconfig/network contains no gateway IP and I don't know how they set the default gateway while after reboot the gateway is the same, also the IP is static and there's now DHCP.I need to know how they did it so I can do the same on my VPSes.

View 1 Replies View Related

Networking :: Can't Set Default Gateway To Different Subnet / Do That?

Feb 3, 2011

This is slackware 12. I'm trying to share my internet connection (on eth0) with a computer connected to eth1.

eth0 is 192.168.0.101, eth1 is 192.168.1.100 (different subnets).

But when I try to make eth1's default gateway the same as eth0's, see the error I get code...

View 7 Replies View Related

Networking :: Default Gateway On Different Subnet?

Jan 8, 2010

I am in a big confusion and searching an answer to calm down my mind.I have my eth0 has following configuration

` ` `
IP 192.168.1.100
mask 255.255.255.0

[code]....

View 3 Replies View Related

CentOS 5 Networking :: VLAN And Gateway Outside Of Subnet?

Jan 12, 2011

My company hosts five Servers with CentOS 5 installed in a Data Center. The Data Center assigns a VLAN to each customer so that they can organize customers and also count traffic. The VLAN assigned to my company is in the form 62.103.X.X with a subnet mask 255.255.255.240 so the IPs that we can use in our Servers are 13. The first IP in the VLAN (for example 62.103.1.1) is the Gateway and the rest, that are calculated from the subnet mask, are assigned to servers(62.103.1.2 up to 62.103.1.14).

The problem I have is that we have run out of IPs in our VLAN. We have used all IPs and we want some more. The Data Center can assign new IPs but not grow our VLAN IPs by expanding the subnet mask. So they gave us a new VLAN with some IPs (for example 62.104.X.X with a subnet mask 255.255.255.192) They told me that I had to use as gateway the gateway of the first VLAN 62.103.1.1 and assign the new IPs as usual. So I assigned to one of the CentOS 5 servers the IP 62.104.1.2 and set the gateway to 62.103.1.1. Unfortunately this did not work and we could not establish connectivity to the Internet.Is it possible to assign a gateway outside of the IPs that are in the subnet? Could it be a problem with the VLAN setup by the Data Center?

View 4 Replies View Related

Ubuntu Networking :: Setup Routes For A Gateway That Resides On A Different Subnet

Jul 29, 2011

I'm trying to setup routes for a gateway that resides on a different subnet. Our ISP leased us a block of IPs and told us to route through the current gateway, which is on a different subnet than our current block of addresses. To test, I've enabled one of the new addresses on one of the existing machines, which works. That machine has an address on the same subnet as the gateway, however.

The gateway address is 24.111.1.177 One of the new addresses I'm trying to use is 96.2.192.130, netmask= 255.255.255.240, broadcast= 96.2.192.143 Obviously, I can't just specify that gateway in /etc/network/interfaces without some routing, which is where the trouble I'm having is. The machine I'm trying to set this up on is part of 2 networks - one internal, on two different NICs.

[Code]...

View 8 Replies View Related

Networking :: Find Unused IP Address In Subnet?

Jul 25, 2011

I need to find myselfe unused IP address in some subnet.
How to determine that particular IP is ununsed in that subnet without asking network admin ?

View 5 Replies View Related

Networking :: VLAN With 2 Router And 2 Subnet - Is Device In Different Subnet Works

Jul 22, 2011

I have TWO L3 + router switch (say switch1 and switch2). I created VLAN100 with VLAN ID 100 in both the switches. I created router 192.168.1.1/24 in Switch1. I created router 192.168.2.1/24 in Switch2. Switch1 is connected with 1.x/24 PCs. PCs are configured with 1.1 gateway. Switch2 is connected with 2.x/24 PCs. PCs are configured with 2.1 gateway. Both Switch1 and switch2 are connected by a trunk to carry VLAN100 data.

1)I have few PCs of 1.x connected to say Switch1 Is it possible for PC with IP 192.168.1.100(x) to ping PC with IP 192.168.2.100(y)?What are the configuration required in both switches to make them communicate ? All the device in both the subnets should ping/communicate with each other.

2)Move PC (192.168.1.100) to switch2. Move PC (192.168.2.100)to switch1.What will happen when PC(1.100) ping (2.100) and vice versa?What will happen when PC(say 1.80 in switch1) pings PC (say 1.100 in switch2) and vice versa? What will happen when PC(say 1.80 in switch1) pings PC (say 2.100 in switch1) and vice versa?

View 2 Replies View Related

Fedora Networking :: Find The IP-ADRESS Of A Machine Using The MAC-ADDRESS Within A Subnet?

May 20, 2009

Is there any tool or command where I can track down the IP-ADDRESS of a machine within the subnet using its MAC-ADDRESS .

View 11 Replies View Related

Networking :: Can't Browse Computer Of One Subnet From Another Subnet

Jul 4, 2011

I installed Redhat Enterprise linux server5. it has two LAN card and two subnet connected to these two LAN card. i can browse network from these two network easily. But i created VLAN on one network card.Now i cant browse network from these VLAN subnet.

View 3 Replies View Related

Ubuntu :: Change From Dhcp To Static Ip Addy?

Jan 5, 2011

my system is belkin router with dhcp enabled.connected are: win xp desktop, win7 netbook, ps3 and fujtisu laptop with ubuntu 10.10, advent notebook xp. right now i have everything getting its ip addy over dhcp but i want to set static ip for each machine. (so the ps3 can run dmz and ocasionally the belkin changes ip address even tho the lease time is set to forever) i can do this with the windoze machines but i do not know how to set static ip and other info for the ubuntu machine.i did search for the forum for 'static ip' but the results that appeared were nothing to do with dhcp!

View 5 Replies View Related

Ubuntu :: 10.04 Using Wrong IP Addy Form For IcedTea Download

Aug 31, 2010

I got 10.04 LTS installed off a flash drive downloaded from unetbootin. I have updated this just now, with update manager. Some how the IP addy for the download is xxx.xxx.xxx.xxx 80. Trouble is they did not put in the colon in the :80 so it never goes to get the down load. where this in what directory so I can edit it? Sry guess the server was down all day or my ISP was messyed up got it going now.

View 1 Replies View Related

Ubuntu Networking :: Cannot Find Wireless Drivers For Laptop (Gateway M6335)

Mar 22, 2011

My laptop is Gateway M-6335 and I have problems with wireless drivers. I couldn't find any drivers for it. I searched in Software Centre and tried to google it but it didn't work. I have also problems with Bluetooth driver, but it's an other story. I'm using Ubuntu 10.10.

View 9 Replies View Related

Ubuntu Networking :: Find Gateway - DHCP Server - DNS Server From CLI ?

May 27, 2010

On a remote system, when all you have is the ssh CLI -

How do you find out the ip addresses for:the Gateway
the DHCP server
the DNS server

Don't need to make any changes.

Which commands will display this info?

View 1 Replies View Related

Ubuntu Networking :: Anyway To Mask IP?

Apr 13, 2010

Is it possible to Mask my IP in Ubuntu?

View 2 Replies View Related

Ubuntu Networking :: How To Add Route Mask

Mar 11, 2010

How can I add this to Ubuntu so that I can effectively use both networks connected to my machine. All I do in WinXP is run this from the command prompt: route -p add 10.0.0.0 mask 255.0.0.0 10.15.122.9

View 3 Replies View Related

Networking :: Mask My Ip Address With Ubuntu 10.04?

Aug 9, 2010

How do i mask my ip address with ubuntu 10.04

View 1 Replies View Related

OpenSUSE :: Date Mask In Ls -l Output

May 18, 2011

I just installed a OpenSuse 11.4 box. Now when I do a 'ls -l' I see the date format different than on all my other boxes even though I have identical regional settings. Is there a way (env var) to control this behaviour ?

View 6 Replies View Related

General :: Grep - How To Extract Mask Value

Feb 24, 2011

I want to extract some information from ifconfig,
E.g.:
inet addr:123.123.123.123 Bcast:123.123.123.255 Mask:255.255.254.0
I want to extract the mask value, how can I do that? I've tried using
Code:
grep -o "Mask:*" test1.txt
but it only outputs "Mask:" I need to get 255.255.254.0

View 3 Replies View Related

Ubuntu Security :: Create 760 But Even If Change The Mask It Still Generates The Same Permissions?

Jan 23, 2010

I have a setup samba and want to get the correct security permissions when my wife creates / copies files from her camera onto the shared/mapped drive on her new laptop (windows 7) I want the permissions set to 770 or maybe 760. See my config below.

Now I can get it to create 760 but even if I change the mask it still generates the same permissions. After every change I restart the samba service. the umask is still 0022, do not know if that makes a difference? The directory permission's are correct with this mask. Do I need to look at groups?

[Code]...

View 1 Replies View Related

Ubuntu Security :: Clean Mask For Files And Folders Through Samba

Feb 9, 2010

Still working on the mask of files for shared folder. I now have a shared folder with the exact behavior I expect :
Code:
sudo addgroup share_group
sudo mkdir /media/volume/shared_dir
sudo chgrp share_group /media/volume/shared_dir
sudo chmod g+s /media/volume/shared_dir
sudo chmod 770 /media/volume/shared_dir
sudo setfacl -d -m group::rwx /media/volume/shared_dir
sudo setfacl -d -m other::--- /media/volume/shared_dir
emma@box:/media/volume/shared_dir$ ls -al
total 8
drwxrws---+ 2 root share_group 4096 2010-02-09 12:53 .
drwxr-xr-x 8 root root 4096 2010-02-09 11:58 ..
-rw-rw----+ 1 emma share_group 0 2010-02-09 12:53 test
By default, user from the group can modify this file. That's perfect.

I have define the share in Samba this way :
Code:
[share]
comment = Shared Folder
path = /media/volume/shared_dir
browseable = yes
guest ok = no
read only = no
hide dot file = yes
# force group = share_group
# create mask = 0660
# directory mask = 0770
# force create mask = 0660
# force directory mask = 0770

When drag & dropping a file in this share, here is the default mask:
Code:
emma@box:/media/volume/shared_dir$ ls -al
total 192
drwxrws---+ 2 root share_group 4096 2010-02-09 12:54 .
drwxr-xr-x 8 root root 4096 2010-02-09 11:58 ..
-rw-rwx---+ 1 emma share_group 6148 2010-02-09 12:54 .DS_Store
-rw-rwxr--+ 1 emma share_group 176684 2009-12-21 23:33 IMG_7487.jpg

So the dropped file have execution rights for the group, and read access for other. I expected it to have the same rights than the file created directly using the touch command. I tried to play with the mask options, without success. The file has been dropped from my mac, which is a Unix like OS. I guess that some authorization access are inherited from the original file, for the user and other parts. But where does the group authorization come from ? Moreover, is is possible to define in samba a default mask, whatever the authorization of the original file?

View 1 Replies View Related

Ubuntu :: Mask/Alter Mac Address From Connections Coming Through Proxy

Nov 17, 2010

I have a local proxy server running on my computer, but I want to add a twist to it. I have multiple connections going through the proxy, but what I'd like to is that all outgoing connections Mac Address' will be different from the one the connecting systems. Mask or even alter them, if possible.

Yes, I know the idea itself sounds weird, but I'm attempting a few ideas for a project I'm working and I ran in to this problem. Please note that it's impossible for me to change the MAC Address' on the systems connecting through the proxy (they're gaming consoles, to be specific.)

I'm currently running the latest version of Ubuntu.

View 1 Replies View Related

Networking :: Most Of Traffic Can Be Routed Simply By IP/mask?

Jun 28, 2011

I have a linux desktop with two connections - fast eth0 and slow modem ppp0. Most of traffic (e-mail, DNS, NTP) can be routed simply by IP/mask. But how about http and p2p (torrents, DC++)? Routing by IP is unacceptable, because there is very huge amount of routing rules. I need route http packets (80 port) through ppp0, p2p through eth0 (10000:65535 ports). I've found that splitting traffic by port is possible with marking packets for different gateways. For begin I cleared all tables and bringed up connections.

Code:
# iptables -F -t mangle
# iptables -F -t filter
# iptables -L -t filter
Chain INPUT (policy ACCEPT)

[Code].....

View 7 Replies View Related

CentOS 5 :: What Does Exclamation Mask Followed By Question Mark Mean?

Mar 25, 2009

In bash, what does an exclamation mask followed by a question mark mean?

View 1 Replies View Related

Slackware :: Make K3b Write Files With Correct Mask

Jan 14, 2010

I've blown a couple of DVDs trying to burn them with correct file masks (directories and files are read-only). There doesn't seem to be any documentation for K3b (building the index doesn't do squat and the help says "The file or folder help:/k3b/index.html does not exist"). I can't seem to figure out a setting that simply copies everything the "way it is."

View 7 Replies View Related

Ubuntu :: 10.04 - Unlock Keyring Password Mask Symbols (****) With Small Font Size

May 3, 2010

It's about the promt for default keyring password after ubuntu boot. I cant get a screen-shot as print-screen doesn't work at that point.

The password mask (*******) symbol font size is smaller than any other password prompt (for instance gksudo). Is it only me ?

Should I report it as a bug ?

It's a minor problem but may be it's caused from something more serious as I have other problems.

Also this dialog window (of the keyring prompt) doesn't "woble". By that I mean that the effects that I've set are not applied to this window?

View 4 Replies View Related

General :: Mask Local Timer Interrupts In User Space?

Oct 27, 2010

I am trying to figure out how to mask local timer interrupts on a specific core of a multicore system from within user space. The interrupts are causing latency spikes of 3-10u that we would like to remove. We are only running 1 thread on the core h everything shielded except for these timer interrupts. This thread makes no system calls and thus is never getting context switched out. I am not looking to turn them off entirely but rather turn them off, run my code, turn them on in a continuous loop. The thread runs in user space which we are hoping to maintain. We also have no desire to modify the kernel if possible. I've read about using spinlock_irqsave() but it appears (not positive) that it must be used within kernel space.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved