Problem With Assignment, Need Tips
Hi, i'll try and keep the code to a minimum. My assignment (at UNI) is to create a JUG Program (Java Ultimate Graphist) which works like a paint program.
So far ive done most of it. But im having problems with combo boxes. Basically its required to have a combo box at the bottom where you choose your shape (rectangle, line, ellipse etc etc). When you choose your shape, and click on the screen, it draws that shape.
This is the bit thats troubling me. The way ive programmed it, (we're using frames) I have one file "Application.java" which runs everything. Another file "Settings.java" which holds most of my methods as well as the control panel (for combo boxes) at the bottom, and a menu bar at the top.
The final file is the actual drawing panel - "PaintPanel.java". This has the paint method etc in it.
Now the problem im having is getting the combo box (Prefrences.java) to interact with the "PaintPanel.java". If i could put all this in one file it would probably work but i just get errors and it just wont work.
Does anyone know how i can make an action listener, listen for my choice in the combo box, then change the shape drawn in the paint panel.
I can post the entire code if you want it
Thanks!
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ClassCommunication
DrawingCode drawCode;
EventCode eventCode;
public ClassCommunication()
// pass a reference of/for/to the DrawingCode instance
// to EventCode that EventCode can use to call methods
// in the DrawingCode class
drawCode = new DrawingCode();
eventCode = new EventCode(drawCode);
private JPanel getCenterPanel()
return drawCode;
private JPanel getSouthPanel()
return eventCode.getUIPanel();
public static void main(String[] args)
ClassCommunication app = new ClassCommunication();
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(app.getCenterPanel());
f.getContentPane().add(app.getSouthPanel(), "South");
f.setSize(300,175);
f.setLocation(200,200);
f.setVisible(true);
class DrawingCode extends JPanel
String s;
public DrawingCode()
s = "hello world";
public void setString(String s)
this.s = s;
repaint();
protected void paintComponent(Graphics g)
super.paintComponent(g);
g.setFont(g.getFont().deriveFont(18f));
g.drawString(s, 100, 50);
class EventCode implements ActionListener
DrawingCode drawCode;
public EventCode(DrawingCode dc)
drawCode = dc;
public void actionPerformed(ActionEvent e)
JComboBox cb = (JComboBox)e.getSource();
String s = (String)cb.getSelectedItem();
drawCode.setString(s);
public JPanel getUIPanel()
String[] items = { "rectangle", "ellipse", "line" };
JComboBox combo = new JComboBox(items);
combo.addActionListener(this);
JPanel panel = new JPanel();
panel.add(combo);
return panel;
}
Similar Messages
-
Problem with Assign reference document.
Hi all,
I defined transaction input parameter type Xml.
I used Reference Document Loader to load document (structure.xml) below.
<?xml version="1.0" encoding="UTF-8"?>
<SO_VALIDATION>
<L4_SO_ID/>
<L4_SOI_NO/>
<PPC_STATUS/>
<PPC_INFO/>
</SO_VALIDATION>
I used menu command Assign Reference Document, to assign above document to transaction input.
I tryed to use this transaction in vs.net application as a web service.
But there is no xml structure in InputParams in web service.
I tryed alot but i did not achieve.
What must i do?
Thanks.cml_bzl,
I'm using version 12.04 and I have not had any problems with assigning reference documents and using .NET.
You should not have to do anyting special to get the transaction inputs to show up in .Net. To map the output I do the following:
1. Create an output transaction variable and assign it's type as XML
2. Using a XML document block to create and XML document for your output transaction variable
3. Assign the XML document as the reference for the output transaction variable.
THis works for me every time. If you change the transaction parameters, make sure you update the web service form the .NET side.
Glenn -
Problem with Assigning more than one value to GROUP dynamically
Hi,
I have a problem with assigning more than one value to GROUP varible dynamically.
I am able to assign only one value dynamically through Initialization block
I have even tried with the ROW-WISE initialization blocks..
using this query..
SELECT 'GROUP', G.GROUP_NAME
FROM GROUP_MAP G
WHERE G.USER_NAME = ':USER'
if GROUP_1, GROUP_2 are two groups to be associated,
through this, i'm getting " GROUP_1;GROUP_2 " into GROUP variable ( seen from Narative view )
And the properties and securities of this Groups are not inherited.
Please let me know if there is any other way to Populate the GROUP variable dynamically with more than one value.
Thank you.,Hi,
i finally got in this way..
i had created a function which takes USER_NAME as input and returns a string that contains the GROUP names with semicolon delimeted..
Though it is same as that of ROW-WISE initialization,
the properties of those groups are also being inherited..
Now, i can assign more than one groups and its properties to a user dynamically. -
Problem with tables -- need help!
I am having problems with table formatting, when using
Preformatted text. The tables look fine in the WYSIWYG editor, but
have lots of extra space above and below the text when looking at
the output files.
I will attach the code from one of the HTML files from my
project, so you can see what I'm talking about.
Thanks.Well, if you're talking about the single-celled table with
the line:
<p class=Preformatted>[assembly:
Ace.AceAssembly]</p>
</pre>
... you can eliminate the <P> tags. that will give you
one line less. Otherwise, your remaining space is the result of the
<PRE> tag. It, like the <XMP> tag, gives it one line of
space beneath as well.
Your alternative beyond that would be to, when needed, wrap
up the script in Javascript. That line, for instance, wouldn't need
it. -
I faced a difficult problem with sysdba. The thing is, I don't have a user name " 1/2@3 ". But the moment I connected as 1/2@3 as sysdba, then it connected automatically and to utter surprise I could drop a user.
If it is so, then how the database will remain secure.
Definitely there is a solution and I need it urgently.Hi
c:\> sqlplus "/ as sysdba"
After logging into SQL, check the username using:
SQL> Show user
If the above command returns "sys", change the password of the user "sys" using:
SQL> Alter user sys identified by "yourpassword";
Thank You -
Problem with Assigning Policy button in Outlook 2010 and Exchange 2010
First of all, I'm posting here because I'm not sure how to post in the previous version of Exchange forums.
Secondly, I'm re-posting this from the Outlook forums as I'm not getting any responses there despite of views.
Hi,
I'm having an issue in Outlook 2010 where I can't assign personal policies to folders. I have setup personal tags and added the mailbox to the right policy. I have also ran Start-MangedFolderAssistant in Exchange 2010 Shell against the mailboxes.
When I go into OWA, everything shows up perfectly, I can right-click and assign policies at will, but when I open Outlook 2010 then the Assign Policy button never appears. I force added it to the ribbon and I can see from there that the button stays grayed
out irregardless of where I click in the folder structure. I have even assigned the mailbox user Owner rights to all the folders to see if it will make a difference.
If anyone can help me solve this problem I will very grateful, I'm pulling my hair out here and I'm certain I could just be missing something very obvious somewhere,
It might be worth mentioning that the company has been using .prf files to configure Outlook thus far, I'm
looking to eliminate that. I'm not sure if that will have any effect on my current problem.
Thanks for your time.
NicoThanks for the reply Max, that's a pretty good link.
Like is I said though, I have the policies all set up in the Exchange configuration side of things, when I use OWA all the options for applying tags appear. It's just in Outlook 2010 Standard that the Assign Policy button stays grayed out.
Thanks.
EDIT:
This has been solved, looks like version problem with Outlook.
http://office.microsoft.com/en-us/outlook-help/license-requirements-for-personal-archive-and-retention-policies-HA102576659.aspx -
Serious problem with database need help
hello experts
i am working with MS-ACCESS and connecting it with java programing
now the problem with me are
according to my need i have to create a table that contain Autonumber field
but when i insert element in this table by query
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement(); it gives sql exception but when i remove
autonumber field and make it simple field it works ok but i want to keep autonumber field and thn want to insert it
is it possible to create a dynamic table in ms-access through java query like
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
here topic id some variable that contain table name
i think problem is that MS-ACCESS has no varchar data type plz help me
The complete code i written is as follow
<html>
<%@ page language="java" import="java.sql.*,java.text.*" %>
<head>
<title> Processing the post request </title>
</head>
<body background ="images/modbkgnd.jpg" bgproperties="fixed" >
<%
String param1="",param2="",topicId="";
Connection con1=null;
Statement st1=null;
ResultSet rs1=null;
int a=2,reply=0;
java.util.Date date = new java.util.Date();
DateFormat df ;
df = DateFormat.getDateInstance(DateFormat.FULL ,java.util.Locale.UK);
String dateformat = df.format(date);
String username = (String)session.getAttribute("forumlogin");
param1=request.getParameter("Subject");
param2 =request.getParameter("message");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con1 = DriverManager.getConnection("jdbc:odbc:lingua");
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement();
out.print("hello i am here");
boolean posubject = st1.execute(query1);
out.print("hello i am here");
String query2 = "select *from Forum";
rs1 = st1.executeQuery(query2); //retriving table id for creating
out.print("hello i am here"); // message table
while(rs1.next())
topicId = rs1.getString(1);
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
boolean createtable = st1.execute(query3);
out.print("hello i am here");
if(createtable)
String query4 = "insert into"+"topicId"+"values('"+param2+"','"+username+"','"+dateformat+"')";
boolean insertmess = st1.execute(query4);
}catch(SQLException ex){
out.print("sql exception");
finally
st1.close();
con1.close();
%>
</body>
</html>hello experts
first i change my Date to date and thn try but it was not working.
and thn i try as dinesh_tcs said
i change my query as
String query3 = "create table"+"topicId"+"( message string NOT NULL,author string NOT NULL, date string NOT NULL)";
but nothing help me
one more thing actually i don,t want to insert manually the field of autonumber what i want that my query work when i leave the autonumber field to insert values in the table ( or whatever way i want to insert values in that table by keeping autonuber given by MS_ACCESS)
plz do the change in code i have maintained above or if not possible thn write the query that u have tested -
Problem with concatenation, need output in a desired format
Hi all,
I have a weird problem with concatenation.
I should get an output in such a way that the result would be
Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
For this first to get C:\TEMP\test20090210.xml format I said
CONCATENATE 'C:\TEMP\test' sy-datum '.XML' INTO filepath.
For this secondly to get /FOLDER1/test20090210.xml format I said
CONCATENATE '/FOLDER1/test' sy-datum '.XML' INTO filepath1.
Now I need to get the format
Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
And to get this I said
CONCATENATE 'put' filepath INTO filepath SEPARATED BY space.
And the output for filepath was Put C:\TEMP\test20090210.xml.
But I want u2026u2026u2026.Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml.
How can I achieve this?
If I say
CONCATENATE filepath INTO filepath1 SEPARATED BY space. It throws a syntax error saying
u201CUnable to interpret filepathu201D
Please help me..i am dying to figure out how to concatenate and get the required output.
My filepath contains u2026 Put C:\TEMP\test20090210.xml
My filepath1 contains u2026/FOLDER1/test20090210.xml
I need final output asu2026u2026u2026u2026.
Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
How to attain this..please helpu2026where I am going wrong..i declared filepath and filepath1 as STRINGHi all,
Thanks for immediate reply...now it works..
but i also need to put a counter like thing to distinguish my files.
for my filepath....
i want it as C:\TEMP\test20090210110146 so i said....
CONCATENATE ' C:\TEMP\test' sy-datum s y-uzeit '.XML'.
Actually i am generating XML files and naming them as testsystemdatesystemtime.
But i am concerend that my filed might be overwrriten if a file gets generated in a fraction of a millisecond..so to avoid that now i want to put a counter.
i.e my filepath should now be as follows each time loop executes...
C:\TEMP\test20090210110146_1
C:\TEMP\test20090210110147 _2
C:\TEMP\test20090210110148 _3.........and son on how can i do it
i.e testsystemdatesystemtime+ a counter(which tells how many times loop executed)
Once again thanks to all for immediate help... -
Problems with Assign Task operation
I'm having a problem with the Assign Task operation. When I export an application of the LiveCycle ES2 environment and import into another environment LiveCycle ES2, my process get stalled in the all Assign Task operations, and the only way to solve the problem I found is to redo all the Assign Task operations. But in an application with many Assign Task operations, this solution becomes very complicated.
Anyone who has encountered this problem could help me better to fix it?
Thanks for any help!
Following is the error message:
StackTrace:
java.lang.NullPointerException
at com.adobe.idp.taskmanager.dsc.util.UserManagerUtils.getUserOID(UserManagerUtils.java:959)
at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createTaskFromDialogPropertie s(UserServiceImpl.java:941)
at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createLongLivedTask(UserServi ceImpl.java:1631)
at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createLongLivedTask(UserServi ceImpl.java:1506)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:357)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:227)
at sun.reflect.GeneratedMethodAccessor643.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy378.doSupports(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:165)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:93)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:22 5)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.idp.jobmanager.execution.workadapter.AbstractExecutableJob.invokeRequest(Abstra ctExecutableJob.java:127)
at com.adobe.idp.jobmanager.execution.workadapter.PersistentExecutableJob.execute(Persistent ExecutableJob.java:60)
at com.adobe.idp.dsc.workmanager.adapter.UnManagedAsynchronousWorkAdapter.run(UnManagedAsync hronousWorkAdapter.java:39)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
at java.lang.Thread.run(Thread.java:619)Hi javier,
1. record = <DATOS>
If possible, try to use
a pre-defined strucure of type P9069
for putting data into this infotype.
2. Avoid using field symbols.
3. Try with P9069
regards,
amit m. -
Problem with function, need to return a very large number
I have a function that is used to derive a number by using a defined algorithm. We have tested it many times in our 'development' region and it works. We moved it to our 'UAT' region and now the function is giving an error. The data is the same in both oracle instances. So.... dba's are telling me it is the function. At this point, I don't know what to do.
Can I declare "RESULT" in a function so that it can return a number this big: 2.00023880306E24?
Oracle returns -6502 error in the deriveNewNum function.
Here is the error:
*** ERROR in deriveNewNum.fnc
SQLCODE: -6502
ORA-06502: PL/SQL: numeric or value error: number precision too large
BEGIN TF1ID; END;
ERROR at line 1:
ORA-06503: PL/SQL: Function returned without value
ORA-06512: at DERIVENEWNUM", line 93
ORA-06512: at line 1Hi,
Did you look up that error in the error messages manual?
http://download.oracle.com/docs/cd/B28359_01/server.111/b28278/e4100.htm#sthref1889
Is there something there that you didn't understand?
<h3>ORA-06502: PL/SQL: numeric or value errorstring </h3>
Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
If you declare variables like this:
x NUMBER;
y NUMBER (20, 10);there woul be no problem assigning a value like 2E24 to x, but there would be if you tried it with y.
How are your varaibles declared.
Whenever you have a problem with your code, post your code.
Always say what version of Oracle you're using. -
Big problems with IMac-need help
I have an older model iMac G5 that my daughter has been using on week-ends when she comes home from the local college. She said that she was having a lot of problems with Safari quitting, getting weird messages with MS Office and kernel panics. I decided that the best thing to do would be to erase and install Leopard. During the installation process I got a message that Leopard could not install due to a problem with the base system. I then tried to install from the restore discs (which were backups that I had on hand since I couldn't find the originals) and from a Tiger install disc. I got errors each time. Now there was no longer an operating system on the iMac. I took it to the local genius bar. The genius seemed kind of frazzled since he was helping several people, but he seemed sure that it was the hard drive because of the kernel panics and the fact that he couldn't install anything onto the computer from an external firewire drive.
I purchased a new hard drive from Amazon and a friend who is very knowledgeable about these things installed it for me. We still couldn't install an operating system. We then installed it using Target Mode by putting the Tiger DVD on a Powerbook. I then proceeded with Software Update. I had no problems with applications like iTunes and DVD player. However, whenever I tried to upgrade the operating system I got this message "The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed by "Apple". I used Disc Utility with the Tiger DVD and it showed no problems.
So, there is obviously something really wrong. I have no idea what it is. Any ideas out there? Should I take the iMac back to the genius bar? I don't want to spend a lot more money on it, since it is just used on week-ends when my daughter is home. Thanks.It could be any of those things, but likely is the motherboard. Take it in and have Apple look at it.
Let us know what they say, please. -
Problem with routing - Need help
Hello,
I need a little direction with what I think is a routing problem. Any help will be appreciated. My setup is as follows:
Cable Modem
27.177.21.9
WAN - Gi0/0
27.177.21.10
Cisco 2901
LAN - Gi0/1
192.168.1.250
Client
192.168.1.10
The Problem
Router can ping LAN interface
Router cannot ping WAN interface -X
Router can ping Cable Modem
Client
Client can ping LAN interface
Client can ping WAN interface
Client cannot ping Cable Modem -X
Here is my routing table:
Gateway of last resort is 27.177.21.9 to network 0.0.0.0 (this is my cable modem)
S* 0.0.0.0/0 [1/0] via 27.177.21.9
is directly connected, GigabitEthernet0/0
27.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 27.177.21.8/30 is directly connected, GigabitEthernet0/0
L 27.177.21.10/32 is directly connected, GigabitEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/1
L 192.168.1.250/32 is directly connected, GigabitEthernet0/1
Here is a portion of my configuration:
interface GigabitEthernet0/0
description Cable Internet$FW_OUTSIDE$$ETH-WAN$
ip address 27.177.21.10 255.255.255.252
zone-member security out-zone
duplex auto
speed auto
interface GigabitEthernet0/1
description hbc_staff$FW_INSIDE$$ETH-LAN$
ip address 192.168.1.250 255.255.255.0
zone-member security in-zone
duplex auto
speed auto
no mop enabled
ip default-gateway 27.177.21.9
ip forward-protocol nd
ip http server
ip http access-class 23
ip http authentication local
ip http secure-server
ip http timeout-policy idle 600 life 86400 requests 10000
ip route 0.0.0.0 0.0.0.0 27.177.21.9
ip route 192.168.1.0 255.255.255.0 27.177.21.9
Thanks in advanceHello Jon,
I continue to try different configurations to get my router to connect without success. I am now trying NAT and this is where we stand now. Any help will be much appreciated.
The problem
Router now pings everything by ip address or name
Client PC from inside the LAN cannot ping modem or Internet
Relevant parts of configuration:
ip domain name mydomain.org
ip name-server 24.247.15.53
ip name-server 66.189.0.100
interface GigabitEthernet0/0
description Internet$FW_OUTSIDE$ETH-WAN$
ip address 27.177.21.10 255.255.255.252
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
interface GigabitEthernet0/1
description hbc_staff$FW_INSIDE$$ETH-LAN$
ip address 192.168.1.250 255.255.255.0
ip nat inside
ip virtual-reassembly in
zone-member security in-zone
duplex auto
speed auto
no mop enabled
ip nat pool HBC-I 27.177.21.10 27.177.21.10 prefix-length 24
ip nat inside source list 7 pool HBC-I overload
ip route 0.0.0.0 0.0.0.0 27.177.21.9
ip route 192.168.1.0 255.255.255.0 GigabitEthernet0/1
access-list 7 permit 192.168.1.0 0.0.0.255
#show ip route
Gateway of last resort is 27.177.21.9 to network 0.0.0.0
S* 0.0.0.0/0 [1/0] via 27.177.21.9
27.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 27.177.21.8/30 is directly connected, GigabitEthernet0/0
L 27.177.21.10/32 is directly connected, GigabitEthernet0/0
192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.1.0/24 is directly connected, GigabitEthernet0/1
L 192.168.1.250/32 is directly connected, GigabitEthernet0/1
When pinging the modem from a client inside the LAN this is what I get from NAT translations and statistics:
#sho ip nat translations ver
Pro Inside global Inside local Outside local Outside global
icmp 27.177.21.10:40709 192.168.1.8:40709 27.177.21.9:40709 27.177.21.9:40709
create 00:00:05, use 00:00:00 timeout:60000, left 00:00:59, Map-Id(In): 1,
flags:
extended, use_count: 0, entry-id: 4, lc_entries: 0
#sho ip nat statistics
Total active translations: 2 (0 static, 2 dynamic; 2 extended)
Peak translations: 2, occurred 00:00:04 ago
Outside interfaces:
GigabitEthernet0/0
Inside interfaces:
GigabitEthernet0/1
Hits: 104 Misses: 0
CEF Translated packets: 104, CEF Punted packets: 0
Expired translations: 7
Dynamic mappings:
-- Inside Source
[Id: 1] access-list 7 pool HBC-I refcount 2
pool HBC-I: netmask 255.255.255.0
start 27.177.21.10 end 27.177.21.10
type generic, total addresses 1, allocated 1 (100%), misses 0
Total doors: 0
Appl doors: 0
Normal doors: 0
Queued Packets: 0 -
Problem with assigning purchased Skype number to a...
Hello, I have encountered difficulty with Skype number settings. I have purchased Skype number and assigned it to my existing Skype account. Though, decided to reassign the Skype number to another account. Is there a way to do that? Thank you.
Solved!
Go to Solution.Hi,
Unfortunately, it is not possible to transfer Skype Credit or products such as Skype Number or any subscriptions from one Skype account to another.
If further assistance is needed, you may contact Customer Service via chat or email through this link: https://support.skype.com/en/faq/FA1170/
Hope this helps.
Julian -
Having problems with burning - need help please!
when I try and burn a disk itunes says no recording
software found. Everytime I start up itunes it says the drivers associated with burning are missing. It ask me to
reinstall the software which I do and I have the same
problem. I have other burning software but cant burn any
itunes Ive purchased do to the format. Any help would be greatly appreciated.
The german note is:
Achtung
Die Registrierungseinträge für die iTunes Treiber zum Import und Brennen von CDs und DVDs fehlen. Diese kann Folge der Installation einer anderen Software zum Brennen von CDs sein. Bitte installieren sie iTunes erneut.
Could anybody please help me??I need more information about your hardware configuration. Run the iTunes Help menu -> Run CD Diagnostics... command and post the results here.
I'm assuming that you're not running 64-bit windows.
It sounds like the driver didn't get installed. You could try doing a repair install on iTunes --
Windows Start menu -> Settings -> Control Panels -> Add or Remove Programs
Select iTunes, Select Change/Remove button, Select "Repair" radio button, click OK.
If that doesn't work, you might try downloading just the CD drivers from :
http://www.gearsoftware.com/support/drivers.cfm
Get the first link, not the second one that talks about gearsec compatibility. -
Cisco AP 1131AG - Problem with assign IP
Hello
I have a Cisco AP 1131Ag with ip 192.168.1.100 and mask 255.255.255.0
ANd two laptops with PCI WIRELESS a/g
I have configurated a Ap with SSID : Ciscoap2010 , no security,no vlan
1.When a laptop detect new wireless,it show "other networks" but doesnt show "Ciscoap2010"
2. When in this laptop i have connected to "other network" and i execute start -> execute -> cmd and execute ipconfig shows 169.254.3.116 and mask 255.255.255.0... and doesnt show 192.168.1.XX and mask 255.255.255.0
Why doesnt show a ip in the range 192.168.1.1 to 192.168.1.254 exception 192.168.1.100
ThanksYou can also just search for the AP config guide on cisco.com to reach the link I put.
A copy/paste of the content :
Configuring the Access Point to Provide DHCP Service
These sections describe how to configure the wireless device to act as a DHCP server:
•Setting up the DHCP Server
•Monitoring and Maintaining the DHCP Server Access Point
Setting up the DHCP Server
By default, access points are configured to receive IP settings from a DHCP server on your network. You can also configure an access point to act as a DHCP server to assign IP settings to devices on both your wired and wireless LANs.
The 1100 series access point becomes a mini-DHCP server by default when it is configured with factory default settings and it cannot receive IP settings from a DHCP server. As a mini-DHCP server, the 1100 series access point provides up to 20 IP addresses between 10.0.0.11 and 10.0.0.30 to a PC connected to its Ethernet port and to wireless client devices configured to use no SSID, and with all security settings disabled. The mini-DHCP server feature is disabled automatically when you assign a static IP address to the 1100 series access point. Because it has a console port to simplify initial setup, the 1200 series access point does not become a DHCP server automatically.
Note When you configure the access point as a DHCP server, it assigns IP addresses to devices on its subnet. The devices communicate with other devices on the subnet but not beyond it. If data needs to be passed beyond the subnet, you must assign a default router. The IP address of the default router should be on the same subnet as the access point configured as the DHCP server.
For detailed information on DHCP-related commands and options, refer to the Configuring DHCP chapter in the Cisco IOS IP Configuration Guide, Release 12.3. Click this URL to browse to the "Configuring DHCP" chapter:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipr_c/ipcprt1/1cfdhcp.htm
Beginning in privileged EXEC mode, follow these steps to configure an access point to provide DHCP service and specify a default router:
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
ip dhcp excluded-addresslow_address [high_address ]
Exclude the wireless device's IP address from the range of addresses the wireless device assigns. Enter the IP address in four groups of characters, such as 10.91.6.158.
the wireless device assumes that all IP addresses in a DHCP address pool subnet are available for assigning to DHCP clients. You must specify the IP addresses that the DHCP Server should not assign to clients.
(Optional) To enter a range of excluded addresses, enter the address at the low end of the range followed by the address at the high end of the range.
Step 3
ip dhcp poolpool_name
Create a name for the pool of IP addresses that the wireless device assigns in response to DHCP requests, and enter DHCP configuration mode.
Step 4
networksubnet_number
[ mask | prefix-length]
Assign the subnet number for the address pool. The wireless device assigns IP addresses within this subnet.
(Optional) Assign a subnet mask for the address pool, or specify the number of bits that comprise the address prefix. The prefix is an alternative way of assigning the network mask. The prefix length must be preceded by a forward slash (/).
Step 5
lease { days [ hours ] [ minutes ] |
infinite }
Configure the duration of the lease for IP addresses assigned by the wireless device.
•days—configure the lease duration in number of days
•(optional) hours—configure the lease duration in number of hours
•(optional) minutes—configure the lease duration in number of minutes
•infinite—set the lease duration to infinite
Step 6
default-routeraddress [address2 ... address 8]
Specify the IP address of the default router for DHCP clients on the subnet. One IP address is required; however, you can specify up to eight addresses in one command line.
Step 7
end
Return to privileged EXEC mode.
Step 8
show running-config
Verify your entries.
Step 9
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Use the no form of these commands to return to default settings.
This example shows how to configure the wireless device as a DHCP server, exclude a range of IP address, and assign a default router:
AP# configure terminal
AP(config)# ip dhcp excluded-address 172.16.1.1 172.16.1.20
AP(config)# ip dhcp pool wishbone
AP(dhcp-config)# network 172.16.1.0 255.255.255.0
AP(dhcp-config)# lease 10
AP(dhcp-config)# default-router 172.16.1.1
AP(dhcp-config)# end
Maybe you are looking for
-
<H3> Hi Experts, I hope you are fine. </H3> <H4>I need to create a sales promotion. When my customer buys a combo we give a free good. For example:</H4> Shaving kit - Material A 1 - shaver - Material B 2 - shaving foam - Material C
-
BAPI_MOSRVAPS_SAVEMULTI3 Taking longer time to complete
I am calling this bapi passing 100k records in the background job and it takes more than 5hrs to complete. Is there any way this run time can be reduced. I cannot slice the file as I need to create the master schedule either all or none. also I tried
-
Tax codes vs Conditions.
Hello friends, Here I got a requirement from my client. They want to add some amount to base price before excise duties to be calculated and the same amount to be deducted after the excise calculation and before the tax calculations. the total after
-
Negative amount in the open deliveries field
Hi All Iu2019ve also come across a negative amount in the open deliveries field on the business partners master data screen but there are no open deliveries no orange arrow to click on and it's grayed out for this selected business partner could anyb
-
How do I create a new iphoto library? I have 314 photos in iphoto and I can't find their origin. I have 10,500 in my originals folder that I need to put into a new library.